tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Giorgio Ponza" <gior...@opla.it>
Subject Re: problems with encodeURL
Date Thu, 06 Jun 2002 07:52:14 GMT
I use Tomcat 4.0.3 and this URL works fine
http://localhost/jsp/Registration/RegisterUser.jsp;jsessionid=1443034522BEFA
7F08FAB7D909FC8BC0?Home=true

I use it in this way
response.sendRedirect(response.encodeRedirectURL("/jsp/Registration/Register
User.jsp?Home=true");

maybe you only have problems in your java code when you try to retrieve the
parameter value.
Can you send some sample code?
Hi

Giorgio

----- Original Message -----
From: <Philipp.Krummenacher@mgb.ch>
To: <tomcat-user@jakarta.apache.org>
Sent: Tuesday, June 25, 2002 9:41 AM
Subject: problems with encodeURL


>
> Hi all
>
> I have problems encoding URL's to make work my app with browsers not
> allowing cookies. The HttpServletResponse's encodeURL method produces
> something in that style:
>
>
http://localhost:8081/jsp/login.jsp;jsessionid=5483F1B0E56180A7774110F1B4B59
> 042?newLanguage=fr
>
> but from such an URL, ths HttpServletResponse's getAttribute-method cannot
> read out my newLanguage-Parameter ...
> (Although I add the parameter before encoding the URL ...).
>
> Does anybody have experience with URL-rewriting with Tomcat and could show
> me a short example?
> (Or should I try to add the sessionId myself to the URL?)
>
> Thanks for any help!
> Philipp
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message