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

What is difference between perform() used in struts1.0 and
execute() used in 1.1 ?

Answer Posted / srilakshmi

Using perform() u have throw IOException,ServletException.
But where as execute() method throws Generic Exception.
i.e
public ActionForward perform(ActionMapping am,ActionForm
af,HttpServletRequest req,HttpServeltResponse res) throws
ServletException,IOException{...some stuff...}



public ActionForward execute(ActionMapping am,ActionForm
af,HttpServletRequest req,HttpServeltResponse res) throws

Exception{...some stuff...}

So no need to handle all the exceptions caught programatically.

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What configuration changes are required to use Tiles in Struts?

1069


What do you mean by dynaactionform?

1033


What do you mean by actionform?

1020


What are the classes used as part of struts framework ?

994


1.can we transfer a request from one struts application to another struts application? 2. how many types of action servlets r there what r they

3244


Which class of struts is responsible to converts data types from string and vice versa?

1141


Can we use struts and spring together?

1051


how to develop the submit and search operations in single jsp using struts?

3059


What is ValueStack and OGNL?

1109


What are inner class and anonymous class?

1047


What is the role of action class?

1085


What is struts-default package and what are it’s benefits?

1179


What is the flow of requests in struts based applications?

1034


What is the actionform?

1087


Do I have to credit struts on my own website?

1049