Ideally I would like to log all exceptions that occur, and I can create an ExceptionHandler to do this, but it will only catch exceptions that get thrown from within one of my Actions, anything thrown from JSP pages or custom tags won't get caught. (right?)
How do most people deal with this? I can set an error-page in the web.xml file that will catch the rest, but then I can't log the exceptions. (or can I?)
1. Factor exception logging code into its own class.
2. Point web.xml error pages to a struts action that invokes that class.
3. Make your ExceptionHandler subclass delegate handling to class defined in step 1.
The beauty of OO composition :-).
David
thanks!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

