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
What configuration changes are required to use Tiles in Struts?
What do you mean by dynaactionform?
What do you mean by actionform?
What are the classes used as part of struts framework ?
1.can we transfer a request from one struts application to another struts application? 2. how many types of action servlets r there what r they
Which class of struts is responsible to converts data types from string and vice versa?
Can we use struts and spring together?
how to develop the submit and search operations in single jsp using struts?
What is ValueStack and OGNL?
What are inner class and anonymous class?
What is the role of action class?
What is struts-default package and what are it’s benefits?
What is the flow of requests in struts based applications?
What is the actionform?
Do I have to credit struts on my own website?