> -----Original Message----- > From: Leandro Melo [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 01, 2004 9:54 AM > To: struts jakarta > Subject: struts exception handler > > > I got this from struts page. > "Don't throw it, catch it! - Ever used a commercial > website only to have a stack trace or exception thrown > in your face after you've already typed in your credit > card number and clicked the purchase button? Let's > just say it doesn't inspire confidence. Now is your > chance to deal with these application errors - in the > Action class. If your application specific code throws > expections you should catch these exceptions in your > Action class, log them in your application's log > (servlet.log("Error message", exception)) and return > the appropriate ActionForward.". > > But what about struts mecahnism of handling > exceptions? I`m really used to throw exceptions from > my actions and let the configurabled exception handler > (i actually use the default one) take care of the rest.
Yes, and in their explanation of the exception handling, the authors mention that taking care of exceptions in the action is not exactly OOP. So, you're doing it right.. the docs just need to be updated. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]