You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Robin Green <gr...@hotmail.com> on 2001/01/29 12:09:17 UTC
Re: two question
"Izzo, Graziano" <GI...@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.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: two question
Posted by Ulrich Mayring <ul...@denic.de>.
"Piroumian, Konstantin" wrote:
>
> >
> > index.xml?name=Ulrich Mayring ==> index.xml?name=Ulrich+Mayring
>
> Are you sure?
> I think that it will be: index.xml?name=Ulrich Mayring ==>
> index.xml%3Fname%3DUlrich%20Mayring
Hm, perhaps it works differently with different versions of the JDK or
even different Browsers.
> Are you talking about the java.net.URLEncoder?
Yes.
Ulrich
--
Ulrich Mayring
DENIC eG, Systementwicklung
Re: two question
Posted by "Piroumian, Konstantin" <KP...@flagship.ru>.
>
> 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
Are you sure?
I think that it will be: index.xml?name=Ulrich Mayring ==>
index.xml%3Fname%3DUlrich%20Mayring
>
> Ulrich
>
Are you talking about the java.net.URLEncoder?
Regards,
Konstantin Piroumian
Re: two question
Posted by Ulrich Mayring <ul...@denic.de>.
Robin Green wrote:
>
> "Izzo, Graziano" <GI...@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
Ulrich
--
Ulrich Mayring
DENIC eG, Systementwicklung