You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Luise Massimo <IM...@computercenter.it> on 2001/04/12 16:58:29 UTC

Encoding URL

Hi all.
 
Can anyone explain me a thing about using RequestDispatcher ?
 
If cookies are disable and i use encodeURL to be sure to include
"jsessionid" into url, is it correct that using "RequestDispatcher.forward"
the url is not changed, so it does not include jsessionid (this happen to me
with tomcat 3.2.1, when my servlet call a jsp to expose results) ?
 
Right way  is to use "sendRedirect" (this mean a roundtrip to the web
browser) ? it's not very....good...
Other way ?
 
Thanks in advance. Max