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 |
How can we handle exceptions thrown by application in Struts2?
if u r using eclipse tool how can u debbaging u r application? plz explain with sample code
How do struts work?
What helpers in the form of jsp pages are provided in struts framework?
Wat is Difference between Mvc1 architecture and Mvc2 Architecture?
21 Answers HCL, IBM, Sanyaa Infotech,
What are different Struts2 tags? How can we use them?
what is request processor class ?
What is the actionform?
What are the classes used in struts?
What is the purpose of @validations annotation?
What is container struts2?
What is the purpose of @createifnull annotation annotation?