can anybody tell.what is the difference between Forward
Action and Action Forward?
Answers were Sorted based on User's Feedback
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 |
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 |
Name some useful annotations introduced in Struts2?
What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?
What are different Struts2 tags? How can we use them?
What is the use of ActionErrors in Struts?
where you store password in banking project
How does struts work?
why we use struts in our web application , means what was drawbacks of servlet ...pls answer
Can we have different controllers in one struts app?
Lists the bundled validators in struts?
How does one create an action in struts 2?
What are the benefits of Interceptors in Struts2?
How many Action classes have been used in your project? Differences between struts 1.1 and 1.3?