struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raj Atchutuni <raj_strut...@yahoo.com>
Subject RE: Action class calling other Action class
Date Mon, 01 Mar 2004 20:28:45 GMT
Look at this. It is working fine and fires callMe action.
 
<action path="/travelInfo" type="com.mycompany.MyFirstAction" validate="false">
  <forward name="success" path="/callMe.do"/>
</action>
<action path="/callMe" type="com.mycompany.MySecondAction">
 <forward name="success" path="mytargerpage"/>
</action>


Ramadoss Chinnakuzhandai <rchinnakuzhandai@register.com> wrote:
When I try to call actionA from actionB by forwarding to the path which mapped to actionA
it is not actually invoking actionA.

I dont know what is wrong with my code....following is piece of my code











Note: I hv tried in the actionA but was getting exception from the server saying the bean
does not contain the property secure.

Can you help me where Im doing wrong?

Tnx,

-Ramadoss



-----Original Message-----
From: Gopalakrishnan, Jayesh [mailto:Jayesh.Gopalakrishnan@schwab.com]
Sent: Friday, February 27, 2004 5:18 PM
To: Struts Users Mailing List
Subject: RE: Action class calling other Action class


You could do this by just forwarding to an action mapping entry for
ActionClassB.

In you action mapping for ActionClassA, have multiple forwards.
And the logic in ActionClassA would forward to whichever, with 1 of them
being ActionClassB.

type="ActionClassA"
name="form"
scope="request">
/>




type="ActionClassB"
name="form"
scope="request">
/>

path="/anyOther.jsp" />



hth
-jayash

-----Original Message-----
From: Ramadoss Chinnakuzhandai [mailto:rchinnakuzhandai@register.com]
Sent: Friday, February 27, 2004 12:29 PM
To: struts-user@jakarta.apache.org
Subject: Action class calling other Action class


Hi,

I hv ActionClassA ======>Display JSP of ActionClassA having a link to Edit
JSP of ActionClassB======>ActionClassB=====>Edit JSP of
ActionClassB======>ActionClassB(Update records)=====>dispatch control over
to ActionClassA.


My question is that Can I forward my control to ActionClassA from
ActionClassB? or is there any better approach/alternative??

Tnx in advance,

-Ramadoss





---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------
Do you Yahoo!?
Get better spam protection with Yahoo! Mail
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message