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 the purpose of @emailvalidator?

976


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

1217


How can forward action be used to restrict a strut application to mvc?

970


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

929


Are struts thread safe?

964


What is action class? What are the types of action class?

960


What is the use of reset method of ActionForm class?

1027


Do I have to credit struts on my own website?

995


Describe validate() and reset() methods.

1078


What is the use of Struts.xml configuration file?

932


Is Struts Framework part of J2EE?

1023


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

925


What are the ways in which duplicate form submission can occur?

933


Why aren’t the struts tags maintained as part of the jakarta taglibs project ?

911


Lists the bundled validators in struts?

1012