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
How does struts2 token work?
Explain how can we upload files in struts2 application?
Why do we need mapdispatchtoprops?
Explain about logic match tag?
Mark the differences between html tags and strut specific html tags.
What does action do in struts?
What is action class? What are the types of action class?
What is execute method in struts?
Which technologies can be used at view layer in struts?
Describe the basic steps used to create a tiles application?
Which library is provided by struts for form elements like check boxes, text boxes etc?
What is purpose of execandwait interceptor?
What is the purpose of @before annotation?
What does apache struts do?
Can I have html form property without associated getter and setter formbean methods?