[OT] Re: How to invalidate a session in struts 2.0

2007-09-13 Thread Dave Newton
--- Gabriel Belingueres <[EMAIL PROTECTED]> wrote: > Anyway, I'm still not convinced that invalidating > the session in the > action class would yield any more positive results > than doing it in > the JSP page. > Nobody gave any examples, counter-examples or use > cases that shows it is more co

Re: How to invalidate a session in struts 2.0

2007-09-13 Thread Gabriel Belingueres
I think this is becoming an off topic for this list, so this will be my last post. Anyway, I'm still not convinced that invalidating the session in the action class would yield any more positive results than doing it in the JSP page. Nobody gave any examples, counter-examples or use cases that sho

Re: How to invalidate a session in struts 2.0

2007-09-12 Thread Alvaro Sanchez-Mariscal
There is one extra reason in favour of doing in the action: it's really simple. Sure. You can implement ServletRequestAware, an call request.getSession().invalidate(); Alvaro. On 9/13/07, Chris Pratt <[EMAIL PROTECTED]> wrote: > On 9/12/07, Gabriel Belingueres <[EMAIL PROTECTED]> wrote: > > I ag

Re: How to invalidate a session in struts 2.0

2007-09-12 Thread Chris Pratt
On 9/12/07, Gabriel Belingueres <[EMAIL PROTECTED]> wrote: > I agree too that (generally speaking) we must introduce the least > possible quantity of scripting into JSP pages as we can, so we honor > the MVC architecture, however, in this particular case (invalidating > the session), I don't unders

Re: How to invalidate a session in struts 2.0

2007-09-12 Thread Gabriel Belingueres
sp > > > page, which purists do not view as 'OK' (speaking as a purist myself, > > > while acknowledging this as a possible character flaw.). > > > - Ray Clough > > > > > > > > > > - Original Message - > &g

Re: How to invalidate a session in struts 2.0

2007-09-12 Thread Alvaro Sanchez-Mariscal
ch > > purists do not view as 'OK' (speaking as a purist myself, while > > acknowledging this as a possible character flaw.). > > - Ray Clough > > > > > > > ----- Original Message - > > > From: "Gabriel Belingueres" <[EMAIL P

Re: How to invalidate a session in struts 2.0

2007-09-12 Thread Gabriel Belingueres
as 'OK' (speaking as a purist myself, while acknowledging > this as a possible character flaw.). > - Ray Clough > > > > - Original Message - > > From: "Gabriel Belingueres" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" &g

Re: How to invalidate a session in struts 2.0

2007-09-11 Thread Alvaro Sanchez-Mariscal
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

Re: How to invalidate a session in struts 2.0

2007-09-11 Thread Ray Clough
rol logic in a jsp page, which purists do not view as 'OK' (speaking as a purist myself, while acknowledging this as a possible character flaw.). - Ray Clough > - Original Message - > From: "Gabriel Belingueres" <[EMAIL PROTECTED]> > To: "Struts Users M

Re: How to invalidate a session in struts 2.0

2007-09-11 Thread Gabriel Belingueres
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, usin