Have you considered using declarative exception handling? 

http://struts.apache.org/userGuide/building_controller.html#exception_ha
ndler


-----Original Message-----
From: Manisha Sathe [mailto:[EMAIL PROTECTED] 
Sent: 11 January 2005 09:26
To: user@struts.apache.org
Subject: Handling the exceptions in struts


I am trying to have a common routine for Exceptions.
 
Inside Action Class I am calling this common method, passing
ActionMapping as parameter, doing some stuff like logging and then
forwarding to error page.
 
But the problem is what if i get exception in my normal Common Java
files (which does not have ActionMapping) - then how i can forward it to
error page ?
 
I am bit confused in how to handle exceptions in effective way. Pls
guide me.
 
regards
Manisha
 
 
 
 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
--------------------------------------------------------
 
If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Click here for important additional terms relating to this 
e-mail.     http://www.ml.com/email_terms/ 
--------------------------------------------------------
 

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

Reply via email to