And also, don't forget that there is nothing special about an Action... you can instantiate and call execute() on it if you wish. In some cases that might be better because it does not incur the overhead of a run through the request processing chain of events again... depends on what your needs are though, you may want or need all that to occur. The argument against doing this, the main one I think, is that you now have two Actions that are coupled, more directly than they are by forwarding from one to another I mean, and that's probably not a good design. In any case, just something to keep in mind, another option you could possible choose.
Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! On Tue, April 18, 2006 9:56 am, Gary Feidt said: > You can simply use return mapping.findForward("actionB"); > > and the following in the struts-config.xml: > > <forward name="actionB" path="ActionB.do"/> > > Gary > >>>> [EMAIL PROTECTED] 4/18/2006 7:37:41 AM >>> > Hi all, > > I had an requirement wherein I needed to forward to another action from > a > action. > I tried by two ways but none of them is working. I would appreciate if > anyone of you could help me understand, what is that which I am not > doing > correctly. > I made a forward in my action A which forwards to my action B. > In my action I did a request.setAttribute("code",code); > & then did a forward. However, I wasn't able to get the request > parameters. > Then I tried a second way: > Action ab = new ActionB(); > ActionForward fwd=ab.process(mapping,form,request,response); > return fwd; > Here the second action didn't get executed. > Please help. > > Thanks & Regards, > Meenakshi. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ > > Confidentiality Statement: > This email/fax, including attachments, may include confidential and/or > proprietary information and may be used only by the person or entity to > which it is addressed. If the reader of this email/fax is not the intended > recipient or his or her agent, the reader is hereby notified that any > dissemination, distribution or copying of this email/fax is prohibited. If > you have received this email/fax in error, please notify the sender by > replying to this message and deleting this email or destroying this > facsimile immediately. > > --------------------------------------------------------------------- > 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]