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 ?

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / gurmeet singh

In struts1.1, we use perform method ie is deprecated now.
So after struts 1.1 we use execute method

Is This Answer Correct ?    12 Yes 1 No

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

Answer / swami

perform() used in struts 1.1 but in struts 1.0 using the execute()

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More Struts Interview Questions

how to connect from struts to database through hibernet and where u can modify the class

0 Answers   Polaris,


What are Struts properties?

2 Answers   VI eTrans,


what is mean by custom tag?

5 Answers   Wipro,


What is spring hibernate and struts in java?

0 Answers  


What is http redirect?

0 Answers  


how to implement singletun design patteren in struts?

5 Answers   HCL,


How can link tag’s action attribute be used?

0 Answers  


How Struts internally works? For Example if we type the URL "/login.do" how the process goes internaly? How the struts-config.xml loaded?

1 Answers   Allied Digital,


What are the advantages of spring mvc over struts mvc?

0 Answers  


What is the purpose of '@customvalidator'?

0 Answers  


Lists the bundled validators in struts?

0 Answers  


Explain about the process of functioning of the struts program?

0 Answers  


Categories