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

How we can controlled duplicate form submission in struts?

516


How to combine the struts with velocity template?

491


How struts 2 validation works?

574


What is the purpose of @results?

583


Explain how can we upload files in struts2 application?

620






What does i18n interceptor?

580


How can we group related actions in one group in Struts?

558


How can we display validation errors on jsp page?

534


What is the difference between session scope and request scope when saving formbean ?

553


What configuration changes are required to use resource files in Struts?

567


Give the details of xml files used in validator framework?

585


How can we display all validation errors to user on jsp page?

646


Why use spring, if you are already using struts?

557


Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?

501


What is struts actionmapping?

521