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 |
In struts.xml, what does the attribute "method" stands for in the "action" tag?
how to create a search field in struts.with code
What’s the difference between struts and turbine? What’s the difference between struts and espresso?
Even though Servlets and JSP are web based concepts .wht is the use of using Struts using then
struts is thread safe or not ?give me answer as early as possible
How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?
List some struts tag libraries?
What’s the utilization of resource bundle properties file in struts validation structure?
Does Struts2 action and interceptors are thread safe?
Is struts compatible with other java technologies?
How to upload struts file?
while working struts in intellij 7.0error unable to initialize tld location cache: zip file is closed is displayed anybdy can answer me immdialy .ungert