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
Explain struts?
Who makes the struts?
What is action support class in struts2?
What types of validations are available in xml based validation in struts2?
What does modeldriven interceptor?
What is the default suffix for struts2 action uri ?
How exceptions are handled in struts application?
What is defeult result type?
What is action class? What are the types of action class?
How struts 2 validation works?
What do you mean by the abstract package in struts2, and what is its utilization?
What is the use of reset method of ActionForm class?
What is the purpose of @urlvalidator annotation?
Is struts mvc framework?
What is the apache struts vulnerability?