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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / p.a.v.k.prasad

ActionForward is a return type of execute() method in the
Action class.

Based on this Actionforward the request processor dispatches
the request to corresponding page(either Success or failure).


Forwardaction:

for this we use
<forward name"success" path="success.jsp"/> it is a child
tad of <action>.

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More Struts Interview Questions

What is Request Dispatcher and What is reuest Processor??

2 Answers  


Provide some important Struts2 constants that you have used?

0 Answers  


What do you mean by dynaactionform?

0 Answers  


What is apache struts cve 2017 5638?

0 Answers  


where you will implement the tiles in struts?

2 Answers   Wipro,






what is the difference between SAX Parser and DOM Parser??

14 Answers   Cap Gemini, Goldman Sachs, HCL, Hidden Brains, HP,


What is actioninvocation in struts2?

0 Answers  


What is the purpose of @doublerangefieldvalidator annotation?

0 Answers  


How is the mvc design pattern used in struts framework?

0 Answers  


What is switchaction?

0 Answers  


Can we have multiple struts-config files in a single web app? If yes why should we have them? Will multiple copies make any impact on performance?

2 Answers   Accenture,


What is DynaActionForm?

0 Answers  


Categories