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’s the difference between struts and espresso?

0 Answers  


Difference between struts and spring?

0 Answers  


Can we write Structs application without using Action Class directly or indirectly(extends Action class)

5 Answers  


I facing problems while explaining project details in the interview...... can any tell complete project architecture that followed in companies

1 Answers   ID,


How action-mapping tag is used for request forwarding in struts configuration file?

0 Answers  






What is struts 2 framework in java?

0 Answers  


How does struts2 token work?

0 Answers  


What is the difference between struts and spring?

0 Answers  


Explain about struts?

0 Answers  


How does struts work?

0 Answers  


What are the pros of struts 2?

0 Answers  


How can duplicate form submission be handled in struts 2?

0 Answers  


Categories