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
Do I have to credit struts on my own website?
What is the difference between filters and interceptors ?
Can you explain value stack?
Explain about struts?
What are the core components of a struct2 based application?
What is struts? Explain
What is the purpose of @requiredstringvalidator?
What is the purpose of @urlvalidator annotation?
What’s the utilization of struts.xml configuration file?
What are the Core classes of Struts Framework?
What is the use of struts config xml file?
What is the role of action class?
What is the purpose of struts.properties in struct2?
Do you need an alignment after replacing struts?
List some struts tag libraries?