wood burning stoves 2.0*
The moose likes Struts and the fly likes Difference between ForwardAction and ActionForward Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Difference between ForwardAction and ActionForward" Watch "Difference between ForwardAction and ActionForward" New topic
Author

Difference between ForwardAction and ActionForward

Sultan Khadar
Ranch Hand

Joined: Sep 12, 2006
Posts: 75
Hi,
Can any body please explain the difference between org.apache.struts.actions.ForwardAction and org.apache.struts.action.ActionForward classes?

Thanks in Advance,
Sultan.
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Have you looked at the API for these two classes? Their names might share the same words but they are quite different. ForwardAction is a type of action where ActionForward is the object that you return from your execute method.

From the 1.1 documentation (at http://struts.apache.org/1.1/api/index.html):

ActionForward: An ActionForward represents a destination to which the controller servlet, ActionServlet, might be directed...as a result of processing activities of an Action class.

ForwardAction: An Action that forwards to the context-relative URI specified by the parameter property of our associated ActionMapping.

- Brent
Sultan Khadar
Ranch Hand

Joined: Sep 12, 2006
Posts: 75
Thanks Brent for the clarification.

Regards,
Sultan.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between ForwardAction and ActionForward
 
Similar Threads
Difference between wsad5.1.2 & Rad
Synchonized
Run as AWT or SWT Application Eclipse Question
JATO Vs JDOM
difference RAD & WSAD