YES, you can do that way ie set it before you call ActionB, inside ActionB you can get 
that value and execute any block of code of your choice...but I believe there are some 
other ways using which we can do it better.


-----Original Message-----
From: Vanessa Monteiro [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 2:18 PM
To: [EMAIL PROTECTED]
Subject: RE: redirecting to another action


If I need to pass the method name to be executed in ActionB I can do it
using setAttributes, right?

_________________________
Vanessa Monteiro
Analista de Sistemas
Quality Software
3475-3000 r:5062

>>> [EMAIL PROTECTED] 17/03/2004 16:10:12 >>>
ActionA ===calling===>ActionB

In the forward attribute of actionmapping of ActionA specify the action
path of ActionB

<action name="actionAForm" type="ActionA" scope="request/session"
validate="true" input="xyz.do" path="/A/do" >
        <forward name="callActionB" path="/B/do" redirect="true" />     
        
        <forward name="success" path="/success.jsp" />
        <forward name="failure" path="/failure.jsp" />
</action>

<action name="actionBForm" type="ActionB" scope="request/session"
validate="true" input="abc.do" path="/B/do" >
        <forward name="callActionB" path="/B/do" redirect="true" />     
        
        <forward name="success" path="/success.jsp" />
        <forward name="failure" path="/failure.jsp" />
</action>

hth
-Ramadoss




-----Original Message-----
From: Vanessa Monteiro [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 1:58 PM
To: <
Subject: redirecting to another action


Hello,

I have an action and depending on the combo box value I need to
redirect to another action. How can I do that? An action calling
another
action?

_________________________
Vanessa Monteiro
Analista de Sistemas
Quality Software
3475-3000 r:5062

---------------------------------------------------------------------
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] 


---------------------------------------------------------------------
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]

Reply via email to