Am Mittwoch, 10. April 2002 10:29 schrieben Sie:
> Are there special reasons why you redirect in the html and not
> with response.sendRedirect ?

yes - a response.sendRedirect won't be recognized by the user! I want the 
user to see, that something happened - and after a few seconds he is going to 
be redirected!

> I don't think that there is an easy way to get the meta tag
> working. (Something like writing a filter or using mod_rewrite
> to rewrites /myURL?jsessionid=og9obimzx2 and using a selfmade
> encodeUrl())

mod_rewrite is a good idea!

meanwhile I do the meta-tag-redirect not to 
'response.encodeURL(request.getRequestedURI())'
but to
'request.getRequestedURI() + "?redirectTo=" + 
java.net.URLEncoder.encode(response.encodeURL(request.getRequestURI())'

if I get a parameter named "redirectTo" in my servlet, I do a 
'response.sendRedirect(request.getParameter("redirectTo"))'

thanks
michi


>
> <snip/>
>
> > <meta http-equiv="refresh" content="10;
> > URL=/myURL;jsessionid=og9obimzx2">
> > is misunderstood by many browsers (NS 4.x, IE5.x, IE6 ...)
> > because of the second ";" before jsessionid!
> > the "signature" of the html-redirect-"function" is (int
> > delayInSeconds;String redirectURL) separated by a ";"!
> > The second ";" makes the browsers believe: here the URLString
> > ends - but this isn't correct! The browser is redirected to
> > the URL without encoded sessionid - and so looses its session!!!
>
> <snip/>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to