Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

[S2] Newbie question about HTTP Sessions

Roger Varley

2007-03-08

Replies:

Hi

A couple of newbie questions. Firstly, does Struts2 automatically
create an HTTP Session or do I need to explicitly create it. Early
experimentation suggests that it's automatically created as I'm seeing
the JSESSIONID parameter in the Urls generated without doing anything,
but I'd like to be sure. Secondly I need to know when a session is
ended. Is there an established Struts 2 practice for this or do I
still create an HTTPSessionListener object and register it in web.xml
as I would with a "basic" web-app.

Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.