Re: Forwarding requests to other actions?

2002-05-13 Thread Mark Nichols

If I am understanding your question you might want to look at the 
DispatchAction.
http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/actions/DispatchAction.html

HTH,
Mark


>From: Struts Newsgroup (@Basebeans.com) <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Forwarding requests to other actions?
>Date: Fri, 10 May 2002 05:10:01 -0700
>
>Subject: Forwarding requests to other actions?
>From: Maurice Mills <[EMAIL PROTECTED]>
>  ===
>Can I forward a request that is sent to one Action to another Action for
>processing?
>
>I have a form with 4 different actions that can be done on it.  I would
>like to keep the processing of these actions in separate Action
>classes.  The way I see it is there are two options:
>
>1) Use javascript to conditionally set a property depending on the
>button clicked.
>2) Tie the submit buttons to a single property and use this in the
>Action class.
>
>I can then use this property to determine the processing in the Action
>class.  These actions, though, can be used on several different
>screens.  I would like to implement a DeleteAction, SaveAction,
>ForwardAction, etc. and forward to the appropriate one based on the
>action property from above.
>
>Can this be done and if so, how?
>
>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




Forwarding requests to other actions?

2002-05-10 Thread @Basebeans.com

Subject: Forwarding requests to other actions?
From: Maurice Mills <[EMAIL PROTECTED]>
 ===
Can I forward a request that is sent to one Action to another Action for
processing?

I have a form with 4 different actions that can be done on it.  I would
like to keep the processing of these actions in separate Action
classes.  The way I see it is there are two options:

1) Use javascript to conditionally set a property depending on the
button clicked.
2) Tie the submit buttons to a single property and use this in the
Action class.

I can then use this property to determine the processing in the Action
class.  These actions, though, can be used on several different
screens.  I would like to implement a DeleteAction, SaveAction,
ForwardAction, etc. and forward to the appropriate one based on the
action property from above.

Can this be done and if so, how?




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