struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Hill <andrew.david.h...@gridnode.com>
Subject Re: How to maintain session in web application if I am using struts
Date Fri, 29 Oct 2004 12:45:57 GMT
The usual way - Struts works with the session support provided by the 
Servlet API (HttpSession).

Additionally Struts tags that work with urls (html:link for instance) 
will take care of adding the jsessionid for you (via the appropriate 
servlet api call to rewrite the url) if the browser has disabled cookies.

(btw: if you are supporting users who switch cookies off be sure to test 
that explicitly due to the differing methods the servlet container uses 
(cookies vs url rewriting) to manage the session in these cases)

hth
Andrew

Amit Gupta wrote:

> Hi,
> 
> How to maintain session in web application if I am using struts? Please help.
> 
> thanks in advance.
> 
> Amit Gupta
> Mobile: 91-9818052171/9891062552
> Email: amitguptainn@yahoo.co.in
> http://amit-gupta.prudence-india.com
> 
> 
> A request - given the barrage of spam these days, there is a non-zero probability that
I  accidentally delete important emails. If a response is necessary to your email, rest assured
that I will respond in time. If however, you have not received a response in a reasonable
period, please don't hesitate to resend.
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message