http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/exception/NestableException.html
Sgarlata Matt wrote:
OK, I will clean this class up and add to BugZilla sometime this week.
One question though is that I think it's important this class catch exceptions and rethrow them as something that makes more sense (and also throw new exceptions if configuration issues are detected). I defined a CommandException for this purpose, which is based on a class very similar to the ChainedException in Scaffold. Is this OK? Should I just copy most of ChainedException into CommandException? I know we don't want struts-chain dependent on scaffold.
Matt
----- Original Message ----- From: "Ted Husted" <[EMAIL PROTECTED]>
To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]>
Sent: Monday, September 29, 2003 11:51 AM
Subject: Re: [Chain] CommandAction
You should create a bugzilla ticket under Struts for an enhancement to the "Standard Actions" component and post this here.
I plan to adopt the ProcessAction in Scaffold to do this too, but that's a more complex usage, so I think there would be room for a simple case
too.
-Ted.
Sgarlata Matt wrote:
To do testing for the ChainServlet I was using Struts and set up my own CommandAction which I think is rather nice. As you might have guessed,
you
use it like this:
<action path="/chainTest" type="com.bah.krm.actions.CommandAction" parameter="SaveAsset"> <forward name="success" path="/test.jsp"/> </action>
where SaveAsset is the name of a command stored in the catalog
initialized
by the ChainServlet. If the command executes successfully, the user is
sent
to the success forward. Otherwise, Struts' error-handling mechanisms
take
over. Do you think this Action could find a home somewhere?
I am attaching the Action in case you want to take a look. It will not compile outside my application framework. If you like it, I will clean
it
up, remove dependencies on my application framework, add documentation,
and
change the coding conventions.
Matt
------------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Ted Husted, Junit in Action - <http://www.manning.com/massol/>, Struts in Action - <http://husted.com/struts/book.html>, JSP Site Design - <http://www.amazon.com/exec/obidos/ISBN=1861005512>.
"Get Ready, We're Moving Out!!" - <http://www.clark04.com>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Ted Husted, Junit in Action - <http://www.manning.com/massol/>, Struts in Action - <http://husted.com/struts/book.html>, JSP Site Design - <http://www.amazon.com/exec/obidos/ISBN=1861005512>.
"Get Ready, We're Moving Out!!" - <http://www.clark04.com>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
