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 difference between plain-validator and field-validator?
How action-mapping tag is used for request forwarding in struts configuration file?
Are struts thread safe?
Explain the life cycle of a request in struct2 application?
How to display validation errors on jsp page?
What is actionservlet?
When it’s useful to use IncludeAction?
Where can I get help with struts?
What configurations are stored in struts configuration file ?
What are the life cycle methods of interceptor?
What is the struts in java?
Which file is used by controller to get mapping information for request routing?
What is the need of struts?
Can we have multiple struts config files ?
What is difference between lookupdispatchaction and dispatchaction?