Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: tomcat 5.0 context redirect

Reinhard Moosauer

2006-12-13

Replies:

Hi,

you can mimimize http traffic by correctly linking to
http://localhost:8080/mytestapp/?qa=1  (with the slash)

Please consider that "mytestapp" should be seen as a directory by the browser.
And your first url is wrong (strictly speaking), so Tomcat tries to fix it by
a redirect.
I see no reason to change the current behavior. Better fix your application.

Kind regards,

Reinhard


Am Mittwoch, 13. Dezember 2006 04:03 schrieb ying lcs:
> Hi,
>
> I notice some strange feature in tomcat 5.0.
>
> If i have a url like this http://localhost:8080/mytestapp?qa=1,
> it will be redirected to http://localhost:8080/mytestapp/?qa=1,
>
> in order words, "context" is automatically redirected to "context/".
>
> Can you please tell me why tomcat 5.0 does it? i don' t notice the
> same thing in tomcat 4.1?
>
> And if there is a way to disable this feature? I think this redirect
> is done via HTTP 302. And i would like to minimize http traffic.
>
> thank you.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.