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 |
How to set email notification using struts.Plz give the example code?
what is the difference between page and pageContext implicit variables
What does execandwait interceptor?
How action mapping is configured in Struts?
Lists the bundled validators in struts?
What is the use of token interceptor in Struts2?
When wil use singleton class in Struts
What is the use of web xml in struts2?
How to override the default error message that can come during file uploading process?
how can you switch onemodule to another module by switch action class plz explain with exapmle?
1 Answers Atos Origin, HeadStrong, Satyam,
Explain about the validation steps which have to be carried during validation of client-side address?
Wat is Difference between Mvc1 architecture and Mvc2 Architecture?
21 Answers HCL, IBM, Sanyaa Infotech,