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 is actionmapping?

1114


How interceptor works in struts 2?

1102


What is difference between struts1 and struts2?

976


What kind of mvc is struts 2?

1064


Do you need an alignment after replacing struts?

986


How exceptions are handled in struts application?

1204


What’s the utilization of resource bundle properties file in struts validation structure?

1136


Can you explain the directory structure for a struts folder in brief ?

1016


What steps are required to for an application migration from Struts1 to Struts2?

1085


What is the purpose of @key annotation annotation?

1126


What do you mean by the abstract package in struts2, and what is its utilization?

986


Define struts?

1091


What is apache struts used for?

973


Which technologies can be used at view layer in struts?

1128


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

1018