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 |
When should we use SwtichAction?
What do you mean by struts.dev mode?
Hi i am murali.i need a excellent answer for the question Tell me about project and project flow ? i mean it is use full to any project,it is on STRUTS
What are the core classes of struts framework? Explain
What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?
Difference between struts and spring? Or why use spring, if you are already using struts?
How interceptor works in struts 2?
explain the Struts flow?
how to write my own Action servlet by extending pre-defined Action servlet in struts config.
What is structs 2 validation framework?
What is the difference between struts1 and struts2?
What is the difference between shocks and struts?