Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

how to write my own Action servlet by extending pre-defined Action servlet in struts config.

2 Answers   Sony,


In which method of action class the business logic is executed?

0 Answers  


What's the purpose of execute method of action class?

0 Answers  


What is the significance of logic tags in Struts?

0 Answers  


What is the purpose of form-be tag in struct-config.xml?

0 Answers  


collection framework hirarchy?

5 Answers  


Hai all.What is the use of <logic:iterate>tag in struts application.

3 Answers   CA, TCS,


What is controller in struts2?

0 Answers  


How can we work with error tags?

0 Answers  


What is Struts Flow?

17 Answers   CTS, rsystems,


kindly can any one post for me portlet,hibernate,spring example code and configuration,and some related tutorials plz its urgent for me....thanks in advance ............

1 Answers  


What is the forward action utilized for?

0 Answers  


Categories