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

When should we use SwtichAction?

0 Answers  


What do you mean by struts.dev mode?

0 Answers  


Hi i am murali.i need a excellent answer for the question Tell me about project and project flow ? i mean it is use full to any project,it is on STRUTS

2 Answers  


What are the core classes of struts framework? Explain

0 Answers  


What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?

0 Answers  






Difference between struts and spring? Or why use spring, if you are already using struts?

0 Answers  


How interceptor works in struts 2?

0 Answers  


explain the Struts flow?

4 Answers   Wipro,


how to write my own Action servlet by extending pre-defined Action servlet in struts config.

2 Answers   Sony,


What is structs 2 validation framework?

0 Answers  


What is the difference between struts1 and struts2?

0 Answers  


What is the difference between shocks and struts?

0 Answers  


Categories