declarative exception handling
David Stabel <[email protected]>
| Newsgroups | gmane.comp.java.strutscx.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, I have a question concerning exception handling in StrutsCX-0.9.2. I noticed that the execute method declared in the StrutsCXBaseAction class is throwing an IOException and a ServletException. Why is it not throwing an Exception (root of all exceptions) as specified by the Struts Action class (see latest javadoc). By doing so declarative exception handling is possible (see also Struts). The exception handling will be defined in struts-config.xml (at a global level or an action level).Whenever an exception is catched in the Action class (e.g. a subclass of the StrutsCXBaseAction class), the requestprocessor will look in struts-config.xml what to do (e.g. forward to an error page or call a 'dealing with the exception' action). Kind regards, David. ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en