Hi again,

http://www.jguru.com/faq/view.jsp?EID=1045

provided the answer. The HttpSession mechanism
tries to first store the session. Only if this fails, 
the urlencoding takes place.

This still doesn't solve everything, but explains much :-)

 Thanks
   Heiko

> -----Original Message-----
> From: Rupp,Heiko 
> Sent: Tuesday, March 25, 2003 2:02 PM
> To: JBoss Users (E-Mail)
> Subject: http session drive me nuts
> 
> 
> Hi,
> 
> does anyone have a simple example on how to use sessions
> with JBoss and Jetty.
> Yes, I know there are frameworks like struts and so.
> 
> What I try to do is 
> 
> HttpSession session=request.getSession();
> session.setAttribute("foo","bar");
> encodedURL=response.encodeURL("/some/page.jsp");
> 
> But encodedURL is fixed at "/some/page.jsp", no matter what
> I put in the session. So the next call to the servlet/jsp
> (e.g. via a HTML-form) I get a new session and not the previous one.
> 
>  Any hints?
> 
> Thanks in advance
> 
>   Heiko
> 
> 
> -- 
> Bancotec GmbH      EMail: [EMAIL PROTECTED]
> Calwer Str. 33     Telefon: +49 711 222 992 900
> D-70173 Stuttgart  Telefax: +49 711 222 992 999
> Ein Unternehmen der Cellent AG http://www.cellent.de/
> 


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to