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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get data from the velocity page in a action class?

569


Can we have more than one struts-config.xml file for a single struts application?

535


How can we upload files in Struts2 application?

592


Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?

502


How many servlet controllers are used in a Struts Application?

515






What is the purpose of @createifnull annotation annotation?

623


Explain how to work with error tags?

588


What are the steps involved in creating a strut application?

514


What is the purpose of @results annotation?

720


Explain about struts dispatch action?

552


Explain about how requests from the client are sent?

524


Why was reload removed from struts (since 1.1)?

548


What is difference between interceptors and filters?

540


What is the purpose of global-forwards tag in struct-config.xml?

584


Which tag is used to declare constants in struts xml?

476