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

Explain struts?

977


Who makes the struts?

896


What is action support class in struts2?

953


What types of validations are available in xml based validation in struts2?

981


What does modeldriven interceptor?

1028


What is the default suffix for struts2 action uri ?

929


How exceptions are handled in struts application?

1119


What is defeult result type?

1018


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

925


How struts 2 validation works?

1026


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

900


What is the use of reset method of ActionForm class?

999


What is the purpose of @urlvalidator annotation?

959


Is struts mvc framework?

878


What is the apache struts vulnerability?

899