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 do struts work?

518


How is the mvc design pattern used in struts framework?

516


What is the purpose of @doublerangefieldvalidator?

605


in struts how to use hibernate with struts>

1824


What is package name in struts xml?

553






What is the purpose of @keyproperty annotation annotation?

576


How struts 2 validation works?

573


Give an alternative way to protect jsp’s with not much features from direct access.

550


Explain about logic match tag?

563


Explain struts.devmode?

562


What is execute method in struts?

494


How is forward action used for integration?

564


Is Struts Framework part of J2EE?

610


What is apache struts framework?

520


What is defeult result type?

625