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

What is the default suffix for Struts2 action URI and how can we change it?

0 Answers  


what is the difference between page and pageContext implicit variables

2 Answers   Yash Technologies,


Please can you tell me ,where can we used the MVC other than web applications.

1 Answers  


Explain about struts?

0 Answers  


Describe the two types of formbeans.

0 Answers  






What is java struts?

0 Answers  


How action-mapping tag is used for request forwarding in struts configuration file?

0 Answers  


What are the core components of a struct2 based application?

0 Answers  


Give an example of validates method used to avoid errors.

0 Answers  


How can I make own ActionServlet? with example

8 Answers   IBM, TCS,


Explain the components of struts?

0 Answers  


Is struts 1 still supported?

0 Answers  


Categories