can anybody tell.what is the difference between Forward
Action and Action Forward?

Answer Posted / shafquatullah siddiqui

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.

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What’s the difference between struts and turbine?

650


How do I access token?

595


How exceptions are handled in struts application?

631


What is the purpose of execute() method?

664


in struts how to use hibernate with struts>

1912






How can forward action be used to restrict a strut application to mvc?

618


Explain about token feature in struts?

644


What does action do in struts?

618


What’s the utilization of struts.xml configuration file?

624


Which design pattern the interceptors in struts2 is based on?

587


What’s the difference between struts and turbine? What’s the difference between struts and espresso?

626


Explain about logic match tag?

663


Can you explain the directory structure for a struts folder in brief ?

613


Why it called struts?

637


What is s token?

617