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 kind of mvc is struts 2?
What is the difference between filters and interceptors ?
How to build struts application in eclipse?
What is the purpose of action-mappings tag in struct-config.xml?
What are construction struts?
How many struts config file in a struts application?
What are action errors and error and what are the consequences they impose?
What is the purpose of constant tag in struts.xml?
What types of validations are available in xml based validation in struts2?
What is ognl?
Explain about the future of struts?
How to use forward action to restrict a strut application to mvc?
What is http redirect?
What is apache struts used for?
What does params interceptor?