----- Original Message ----- From: "Jerry Wang" <[EMAIL PROTECTED]> To: "Struts Users" <[EMAIL PROTECTED]> Sent: Monday, November 19, 2001 2:30 PM 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 ? If what you want is one action to be executed, and then another action, before going to the JSP, then yes, you should forward from the first action to the second one. > 2. for register.do?action=edit, what does action=edit do with the > action? The 'action' request parameter is really a sub-action. It is up to the Action processing the request to handle different 'action' values appropriately. > Does it override the default action ? It is up to the Action to decide if there is such a thing as a default for this parameter. It's probably better to not have a default in this case. > 3. Can I chain actions by doing register.do?action=edit&action=commit... This would not be true chaining. It will simply result in two values for the 'action' request parameter. You could, I suppose, have your Action class handle multiple values and act as if the same Action was being chained to, but forwarding (as in (1) above) is much more general. -- Martin Cooper > > 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]>

