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 is the purpose of constant tag in struts.xml?
What is the use of reset method of ActionForm class?
What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?
What’s the utilization of struts.xml configuration file?
What is the difference between filters and interceptors ?
Can you explain value stack?
What are the benefits of Struts framework?
Difference between struts and spring?
What are the core classes of struts framework? Explain
Mark the differences between html tags and strut specific html tags.
What is the purpose of @results?
When do I need “struts.jar” on my classpath?
Which interceptor is responsible for i18n support?
Are the struts tags xhtml compliant ?
Is struts efficient?