Hi Jerry,

Not really, at least as far as I know with Struts (Cocoon allows
chaining of actions though). What you can do however is create one
action class that then pulls out the 'action' parameters, returned as an
array of strings from the HttpServletRequest object and does whatever it
needs to do with them, or you could possibly chain them by doing the
following:

Register.do?action=edit.do&action=commit.do....

However, you would have to keep track of which one to execute next. The
*.do would of course be the mapping to a Action class; one returns the
forwarding to the next one.

If you (or anyone else) are looking for a scripting type of engine,
email me ([EMAIL PROTECTED]) as I am working on one as I write
this.

Then again, some of the others may have another solution(?).

Robert McIntosh
Software Architect
Browsersoft, Inc.

-----Original Message-----
From: Jerry Wang [mailto:[EMAIL PROTECTED]] 
Sent: Monday, November 19, 2001 4:31 PM
To: Struts Users
Subject: action chain

Hi,

I've the following questions. Thanks in advance.

1. How can I build a chain of actions for a request ? Do I have to use
forward in action definition to do this ?
2. for register.do?action=edit, what does action=edit do with the
action?
Does it override the default action ?
3. Can I chain actions by doing register.do?action=edit&action=commit...

Jerry Wang
Bank of New York
CT Office: 203-863-8056
Mobile:     917-495-5598



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to