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 can we handle exceptions thrown by application in Struts2?

0 Answers  


if u r using eclipse tool how can u debbaging u r application? plz explain with sample code

3 Answers   IBM, Tech Mahindra,


How do struts work?

0 Answers  


What helpers in the form of jsp pages are provided in struts framework?

0 Answers  


Wat is Difference between Mvc1 architecture and Mvc2 Architecture?

21 Answers   HCL, IBM, Sanyaa Infotech,


What are different Struts2 tags? How can we use them?

0 Answers  


what is request processor class ?

10 Answers   Fidelity,


What is the actionform?

0 Answers  


What are the classes used in struts?

0 Answers  


What is the purpose of @validations annotation?

0 Answers  


What is container struts2?

0 Answers  


What is the purpose of @createifnull annotation annotation?

0 Answers  


Categories