Try changing updateSuccess path to reflect your actual relative URL: <forward name="updateSuccess" path="/myaccount/domains.do" redirect="true" />
- or whatever extension you're using. --- Ramadoss Chinnakuzhandai <[EMAIL PROTECTED]> 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 > > <action name="actionA" type="ActionA" scope="session" > path="/myaccount/domains"> > <forward name="success" path="myaccount.dmdetails" redirect="false" > /> > </action> > > > <action name="actionB" type="ActionB" scope="session" > path="/myaccount/domains"> > <forward name="updateSuccess" path="/myaccount/domains" > redirect="true" /> > <forward name="manageRegdNameServers" > path="myaccount.dmdetails.dns.registered"/> > </action> > > Note: I hv tried <set-property property="secure" value="true"/> 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:[EMAIL PROTECTED] > 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. > > <action path="/actionA" > type="ActionClassA" > name="form" > scope="request"> > <forward name="SUCCESS" path="/do/actionB" > /> > <forward name="FAILURE" path="/test.jsp" /> > <forward name="CANCEL" path="whatever" /> > </action> > > <action path="actionB" > type="ActionClassB" > name="form" > scope="request"> > <set-property property="secure" value="true" > /> > <forward name="SUCCESS" path="/any.jsp" /> > <forward name="FAILURE" > path="/anyOther.jsp" /> > </action> > > > hth > -jayash > > -----Original Message----- > From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] > Sent: Friday, February 27, 2004 12:29 PM > To: [EMAIL PROTECTED] > 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: [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] > __________________________________ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]