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...

In ActionClass we can use only one action i.e execute(), but
in DispatchAction we can use multiple actions.My question is
, we can use multiple actions in Action class
if(action.equals("add") if(action.equals("update"). Then
when to use Action and DispatchAction which is frequently
in webapplications.

Answer Posted / sekhar babu

If multiple actions refer to the same formbean then we
should go for DispatchAction. Yes as you said it is possible
to write in Action. But by using dispatchAction we can
simply specify the parameter name in config file.

No need to write the code in our appln

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What helpers in the form of jsp pages are provided in struts framework?

992


What are the steps required for setting up validator framework in struts?

1020


Explain the core end goal while using java struts?

949


How can we write our own interceptor and map it for action?

1061


Why do we need struts?

931


Give an example where struts tiles may be used?

1014


What is form bean in struts?

956


Where can I get help with struts?

1004


What is the purpose of @result annotation?

1154


What are the contents on web.xml in struts application ?

987


What is the difference between validation.xml and validator-rules.xml files in struts?

921


What is the role of a handler in mvc based applications?

1224


Difference between struts and spring?

1169


What is the purpose of dispatcher result type?

966


What are pull and push mvc architecture and which architecture does struts2 follow?

937