-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Anoop Kumar V
Sent: Tuesday, September 03, 2002 12:52 AM
To: [EMAIL PROTECTED]
Subject: Redirection in iPlanetHi 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
Title: Redirection in iPlanet
If the
uri you want to send it to, is on a different machine your can use the
response.sendRedirect("http://www.abc.com); on your HttpServletResponse
instance. So what you could is :
// req
is your HttpServletRequest instance
String
requestingHost = req.getRemoteHost();
// You
may have to do something with the URL like parse the string to remove extra
information.
if
(requestingHost .equals("http://xyz.com/un/en"){
response.sendRedirect("http://www.mircrosoft.com");
}
I
don't know if the version of I'Planet is servlet 2.3 compatible...but if it is
you can look into using a filter. Hope this gets you started.
T.
Kochanowicz
Head
Janitor
Nebraska Mental Ward
- Redirection in iPlanet Anoop Kumar V
- Re: Redirection in iPlanet Pramod Nair
- Re: Redirection in iPlanet Tom Kochanowicz
- Re: Redirection in iPlanet Anoop Kumar V
- Re: Redirection in iPlanet Bhangale, Bhushan
- Re: Redirection in iPlanet Anoop Kumar V
