Originally posted by Marc Peabody:
Try putting this in your struts-config.xml:
That's the only thing I can think of. That and maybe making sure that the ActionMapping's scope is also request.
Originally posted by sreenath reddy:
I feel the problem with ur code is that u have a form with some action and that might be having some action form assocaited with it and in the config file u might not have given the scope for this action mapping......then that will be in session scope so make it request
and one more thing thats not the way u need to hanlde the session issues ...write some custom tag r else inside that login resent instead of invalidating the session just redirect to some page saying session is invalid and from there just direct to the login page of ur application ..its not a good practice to do like this
r else better u can use checklogontag to handle these issues
<%@ page import="org.apache.struts.Globals" %>
<logic : present name="<%=Globals.ERROR_KEY%>" scope="request" >
Anything you want to do if there are errors.
</logic : present>