You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Seb from France <se...@yahoo.fr> on 2003/05/16 15:32:51 UTC

redirection in index.jsp

Hi everybody

With Apache :
When I write in my navigator www.mywebsite.com , the webpage index.html from
www.mywebsite.com appears without redirection (normal), then the url that
appears in my navigator is www.mywebsite.com

With tomcat 3 or 4 :
When I write in my navigator www.mywebsite.com, tomcat send a sendredirect
(HTTP/1.1 302 location:http://www.mywebsite.com/index.jsp) in the webpage
index.jsp, then the url that appears in my navigator is
www.mywebsite.com/index.jsp, this make somes problems for the suite of
developpements.

I tempt to find a solution in Jakarta's website, but no way..... I suppose a
solution exists but I don't know what to do?

Some ideas?

Sébastien

Re: redirection in index.jsp

Posted by Bill Barker <wb...@wilshire.com>.
With TC 3.3.2-dev (aka nightly), you can set the useInternal="true"
attribute on the StaticInterceptor element in server.xml to do what you
want.  It is also the default behavior for TC 5.0.x (where x >= 2).  I'd
have to look to see how to turn it off.  AFAIK, there are no plans to
implement this feature in the TC 4.x.x line.

"Seb from France" <se...@yahoo.fr> wrote in message
news:01b001c31baf$a7ac9cc0$0200000a@nomade...
Hi everybody

With Apache :
When I write in my navigator www.mywebsite.com , the webpage index.html from
www.mywebsite.com appears without redirection (normal), then the url that
appears in my navigator is www.mywebsite.com

With tomcat 3 or 4 :
When I write in my navigator www.mywebsite.com, tomcat send a sendredirect
(HTTP/1.1 302 location:http://www.mywebsite.com/index.jsp) in the webpage
index.jsp, then the url that appears in my navigator is
www.mywebsite.com/index.jsp, this make somes problems for the suite of
developpements.

I tempt to find a solution in Jakarta's website, but no way..... I suppose a
solution exists but I don't know what to do?

Some ideas?

S�bastien





---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org