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 disadvantages of Struts?
Why aren’t the struts tags maintained as part of the jakarta taglibs project ?
Which servlet does the struts framework use?
Are struts still used?
What is filter dispatcher in struts?
What are the 5 constants of action interface?
What is action servlet in struts?
Briefly tell the two kinds of form beans.
What is the purpose of @keyproperty annotation annotation?
Can you explain value stack?
What is action class?
What applications use apache struts?
how to get the last 10 elements using logic:iterate in struts with hiernate from database.
What is the purpose of @results?
What is the difference between shocks and struts?