If we do that, then execute() method in child classes will override Base Action 
execute() method. Right? Then, as far as I know, that execute() in Base Action 
will not be executed..
 
Peru Cheppanu
 

[EMAIL PROTECTED] wrote:

Hi,
The best way is to write a Base Action class and extend that class 
for all your Action classes in your application. Place a check in the 
execute method of the Base Action class and if it is a "success" then call 
an abstract method in the Base Action class which will be implemented by 
all your Action classes. If it is a "failure" (means there is NO required 
information in the session), then forward to a login page or failure page.


Regards,
Rajasekhar Cherukuri




Jadeler 
10/17/2005 09:57 AM
Please respond to
"Struts Users Mailing List" 


To
user@struts.apache.org
cc

Subject
Handling invalid sessions






What is the best way to handle invalid sessions (http
sessions) within Struts? I need a way to determine
when an object within a session no longer exists and
redirect the user to an error page when that happens. 
I was thinking of implementing
HttpSessionAttributeListener or a Servlet filter. Any
suggestions on whats recommended? Thanks.

Jadeler






__________________________________________________________ 
Find your next car at http://autos.yahoo.ca

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ForwardSourceID:NT0000615A 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information. If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited. If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments. Thank you
                
---------------------------------
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

Reply via email to