Hi Kumar, It is possible to map a url pattern to a servlet.
This is configured in the deployment descriptor (web.xml). The DTD is as follows: <!ELEMENT servlet-mapping (servlet-name, url-pattern)> <!ELEMENT url-pattern (#PCDATA)> * can be used in the url-pattern. For example, <servlet> <servlet-name>catalog</servlet-name> <servlet-class>com.mycorp.CatalogServlet</servlet-class> <init-param> <param-name>catalog</param-name> <param-value>Spring</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>catalog</servlet-name> <url-pattern>/catalog/*</url-pattern> </servlet-mapping> All urls having /catalog in the URL will be redirected to the CatalogServlet by the server. Please refer the servlet api 2.3 for more information. (The above example is from the specification). Regards, Dayanand. -----Original Message----- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Anoop Kumar V Sent: Tuesday, September 03, 2002 1:51 PM To: [EMAIL PROTECTED] Subject: redirection in iPlanet web server. Hi all, This might be a bit off-topic, but i dint know where else to post this query.. i face a situation on iplanet such that all urls of a particular pattern for example <http://xyz.com/un/en/*> need to be redirected to another page, like a customised error page. Can somebody tell me how to achieve this?? I did find the link in iplanet administration pages where we can forward/ redirect requests based on urls, but is it possible to redirect url patterns using wildcard characters like '*'? and where can we do this?? The iPlanet we use is 4.1 with ATG-Dynamo as the App-server. Any help in this would be appreciated, Thanks in advance. Anoop Kumar V. ? Sapient Presidency Building, Delhi- Mehrauli Road Gurgaon 122001 Haryana India +91.124.682.6125 desk +91.124.680.8015 fax =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
