one should 
either *catch* Exception OR
use errorPage attribute of <[EMAIL PROTECTED] ...> directive to handle error

HTH
Navjot Singh

>-----Original Message-----
>From: Antony Paul [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, December 10, 2003 5:08 PM
>To: struts
>Subject: session.invalidate() throws exception.
>
>
>Hi,
>    Calling session.invalidate() in index.jsp throws this exception
>java.lang.IllegalStateException: getAttribute: Session already invalidated
>       at
>org.apache.catalina.session.StandardSession.getAttribute(StandardSe
>ssion.jav
>a:954)
>       at
>org.apache.catalina.session.StandardSessionFacade.getAttribute(Stan
>dardSessi
>onFacade.java:171)
>       at 
>org.apache.struts.taglib.html.FormTag.renderToken(FormTag.java:641)
>       at 
>org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:513)
>       at org.apache.jsp.index_jsp._jspService(index_jsp.java:97)
>       at 
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
>
>How to change this behavior. Better if possible to do some house keeping
>before invalidating session like if a valid session and data is present in
>session then go to a certain page.
>
>rgds
>Antony Paul.
>
>
>
>---------------------------------------------------------------------
>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]

Reply via email to