Step 1) in struts config file....

<global-forwards>
   <forward name="foo" path="/foo.do"/>
</global-forwards>

foo.do is the path of the action
(this assumes you have an action mapping with a path of /foo)
(you can also use a forward that is a member of your action)

Step 2) in your action's execute method


return mapping.findForward("foo");

(i am doing the above off the top of my head so if the syntax is a little
off opps)


Rick Hightower
Developer

Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm

Struts/J2EE consulting --
http://www.arc-mind.com/consulting.htm#StrutsMentoring


-----Original Message-----
From: Sudhakar G [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 10:21 PM
To: [EMAIL PROTECTED]
Subject: forwarding request to Another Action class from Action Class


Hi Everybody,
       Can any one tell me how do I forward the request to other Action
class
from the current Action class..


Thanks in Advance

Sudhakar





DISCLAIMER:
This message (including attachment if any) is confidential and may be
privileged. Before opening attachments please check them for viruses and
defects. MindTree Consulting Private Limited (MindTree) will not be
responsible for any viruses or defects or any forwarded attachments
emanating either from within MindTree or outside. If you have received this
message by mistake please notify the sender by return  e-mail and delete
this message from your system. Any unauthorized use or dissemination of this
message in whole or in part is strictly prohibited.  Please note that
e-mails are susceptible to change and MindTree shall not be liable for any
improper, untimely or incomplete transmission.

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