You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Thomas Yip <ty...@yahoo.com> on 2000/02/24 02:25:33 UTC

Redirection!

Hi all,

I'm writing a servlet for tomcat which depend on the request path to to
choose
what information to send back to user.

To make relative link work, I add a trailing slash to the end of servlet
path,

so, I redirect,
http://leafone:8080/examples/servlet/RequestInfoExample
into
http://leafone:8080/examples/servlet/RequestInfoExample/
using sendRedirect( "/" ), whenever the pathInfo is null.

However, IE ignore my redirection, but netscape work fine.

So, in IE user clicking <a href="ABC"/> become
http://leafone:8080/examples/servlet/RequestInfoExampleABC
but what I want is
http://leafone:8080/examples/servlet/RequestInfoExample/ABC

So, what can I do to make IE follow my redirection?
Or, is that any better way?

Thank in advance :)

Thomas