What is difference between perform() used in struts1.0 and
execute() used in 1.1 ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / gurmeet singh
In struts1.1, we use perform method ie is deprecated now.
So after struts 1.1 we use execute method
| Is This Answer Correct ? | 12 Yes | 1 No |
Answer / swami
perform() used in struts 1.1 but in struts 1.0 using the execute()
| Is This Answer Correct ? | 0 Yes | 5 No |
What is validate() and reset() functions?
What is the use of form bean in struts?
what is struts? why Struts?
Hi Friends, why struts introduced in to web application. Plz dont send any links . Need main reason for implementing struts. Thanks Prakash
Are interceptors thread safe?
I will explain the scenario now i have a form1 having some fields and i made it extends DynaActionForm. in struts config how can i specify another form form2 which has to extend the form1 please specify is it better to use actionform or dyna action form in applations. is dyna action form is comfortable in declaring form variables of type 'ArrayList<somegenerics>' extend the
What's mvc pattern ?
What is action chaining ?
What is use of i18n interceptor?
how to implement singletun design patteren in struts?
List some bundled validators?
What do you mean by inner class and anonymous class?