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 are the steps required for setting up validator framework in struts?
What is use of i18n interceptor?
Why we use struts in java?
What is the use of jsonvalidation?
Explain about token feature in struts?
What is spring hibernate and struts in java?
What are the bundled validators?
Lists the bundled validators in struts?
How we can install struts?
What is the apache struts vulnerability?
Who makes the struts?
What is struts xml?
What is spring and struts in java?
What is the purpose of @stringlengthfieldvalidator annotation?
Explain about tiles?