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 is the purpose of constant tag in struts.xml?

946


What is the use of reset method of ActionForm class?

1032


What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?

1009


What’s the utilization of struts.xml configuration file?

937


What is the difference between filters and interceptors ?

1151


Can you explain value stack?

920


What are the benefits of Struts framework?

1002


Difference between struts and spring?

1149


What are the core classes of struts framework? Explain

998


Mark the differences between html tags and strut specific html tags.

973


What is the purpose of @results?

1002


When do I need “struts.jar” on my classpath?

971


Which interceptor is responsible for i18n support?

934


Are the struts tags xhtml compliant ?

939


Is struts efficient?

924