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 to use forward action to restrict a strut application to mvc?

597


What is jakarta struts framework?

568


How interceptor works in struts 2?

596


Can we use struts and spring together?

540


What is the naming convention for a resource bundle file in struts2?

541






What is difference between spring and struts?

506


What are the benefits of Interceptors in Struts2?

655


What is structs 2 validation framework?

568


What is actionservlet?

564


What are the benefits of Struts framework?

564


What is http forward?

551


State an example of struts configuration file as an action parameter for action servlet.

541


What are the main classes which are used in struts application?

503


What is actioninvocation?

544


What are the features of struts?

577