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

Why do we need mapdispatchtoprops?

820


What do you mean by a custom tag?

897


What is role of actionservlet?

980


How many action classes can be used in struts application?

945


What is dispatchaction?

1049


What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?

986


Give an alternative way to protect jsp’s with not much features from direct access.

955


What are the core classes of struts?

988


Can we handle exceptions in Struts programmatically?

937


What is Custom Type Converter in Struts2?

1058


What is Struts2?

1012


What is the purpose of @createifnull annotation annotation?

997


What is switchaction?

1079


What are the cons of struts 2?

960


How to explain Software Bank Loan descriptions

2417