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 |
Can we have multiple struts-config files in a single web app? If yes why should we have them? Will multiple copies make any impact on performance?
What is the role of a handler in mvc based applications?
What is purpose of execandwait interceptor?
Give an alternative way to protect jsp’s with not much features from direct access.
What is the difference between plain-validator and field-validator?
Which class is the Front Controller in Struts2?
What is struts xml?
what is the advantages and diadvantages of Struts?
Can we have different controllers in one struts app?
What is the purpose of @requiredstringvalidator?
Which technologies can be used at view layer in struts?
Why we use struts in java?