You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mufaddal Khumri <mu...@wmotion.com> on 2003/11/18 17:05:14 UTC
URL rewriting question ..
In order to enable URL rewriting as opposed to storing cookies
automatically we need to use the encodeURL(String url) or
encodeRedirectURL(String url) method in the Servlets and/or JSPs. Is
there a more easier way to do this as opposed to going thru the entire
webapp and doing this for every URL or redirection ? Are there some
configuration settings in Tomcat 4.1.x that can be set in say the
server.xml or web.xml that can be used ?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: URL rewriting question ..
Posted by Christopher Schultz <ch...@comcast.net>.
Mufaddal,
> Wouldnt it be nice a feature like this that one can turn on or off
> globally in a container like tomcat ? The existing way to granularly do
> it should remain, but a global way to do it would be nice ..
Feel free to submit a patch :)
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: URL rewriting question ..
Posted by Mufaddal Khumri <mu...@wmotion.com>.
Wouldnt it be nice a feature like this that one can turn on or off
globally in a container like tomcat ? The existing way to granularly do
it should remain, but a global way to do it would be nice ..
On Tuesday, November 18, 2003, at 09:13 AM, Christopher Schultz wrote:
> Mufaddal,
>> Are there some configuration settings in Tomcat 4.1.x that can be set
>> in say the server.xml or web.xml that can be used ?
>
> Nope. Tomcat won't look through your responses for things that look
> like URLs and append all the things you need (like sessison id, etc.).
>
> However, if you are using a framework like Struts, you can use the tag
> libraries provided to add both the context path as well as any
> necessary session information to the URLs.
>
> Unfortunarely, that still requires you to go back through all your
> pages and change all the links :(
>
> -chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: URL rewriting question ..
Posted by Christopher Schultz <ch...@comcast.net>.
Mufaddal,
> Are there some
> configuration settings in Tomcat 4.1.x that can be set in say the
> server.xml or web.xml that can be used ?
Nope. Tomcat won't look through your responses for things that look like
URLs and append all the things you need (like sessison id, etc.).
However, if you are using a framework like Struts, you can use the tag
libraries provided to add both the context path as well as any necessary
session information to the URLs.
Unfortunarely, that still requires you to go back through all your pages
and change all the links :(
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org