It is enough to develop a LogoutAction implementing ServletRequestAware, and calling request.getSession().invalidate() in its execute().
Alvaro. On 9/11/07, Gabriel Belingueres <[EMAIL PROTECTED]> wrote: > Personally, I use the good old > > <% session.invalidate(); %> > > as the last instruction of my logout.jsp page. > > AFAIK, to invalidate the session inside an action, you must downcast > the session Map (from the SessionAware interface) to a SessionMap > class, which seems little awkward to me. > > Besides, using session.invalidate() doesn't seems to me like an > anti-pattern or something wrong. > > Gabriel > > 2007/9/11, illusion <[EMAIL PROTECTED]>: > > > > Hey, > > > > How to invalidate a Http Sesssion in struts 2.0? There is a SessionMap > > class which asks for a httpservletrequest as a parameter, and has an > > invalidate method for the http session, not sure how this works. > > > > thanks in advance for your assistance > > -- > > View this message in context: > > http://www.nabble.com/How-to-invalidate-a-session-in-struts-2.0-tf4424331.html#a12620475 > > Sent from the Struts - User mailing list archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Alvaro Sanchez-Mariscal Arnaiz Java EE Architect & Instructor [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]