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 you will display validation fail errors on jsp page?
What are construction struts?
Explain about struts relation to html tags?
what is meant by Struts Validator Framework?
What is s token?
Can you explain the directory structure for a struts folder in brief ?
How is the action mapping specified?
What is execute method in struts?
How the flow of various requests happens in struts application?
Can you explain value stack?
What is interceptor in Struts2?
What is the difference between empty default namespace and root namespace?
Why aren’t the struts tags maintained as part of the jakarta taglibs project ?
How to override the default error message that can come during file uploading process?
Why was reload removed from struts (since 1.1)?