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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to