cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject Re: two question
Date Mon, 29 Jan 2001 13:34:52 GMT
Ulrich Mayring <ulim@denic.de> wrote:
>Robin Green wrote:
> >
> > "Izzo, Graziano" <GIzzo@na.atos.it> wrote:
> > >       2. When i do a sendredirect in an xsp page, sometimes,
> > >       in a new page, a lose the root session.
> > >        suggestion?
> >
> > You need to use response.sendRedirect (response.encodeRedirectUrl
> > (yourUrl));
> >
> > this will store the session id in the url if necessary.
>
>Actually I've found that URLEncoder.encode(URL) works better, because it
>will also escape special characters like in:
>
>index.xml?name=Ulrich Mayring  ==>  index.xml?name=Ulrich+Mayring

No, that's for a different purpose - this is for adding a session id to an 
already-valid URL, not making an URL valid.



_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


Mime
View raw message