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]



Reply via email to