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 you will make available any message resources definitions file to the struts framework environment?
Do you need an alignment after replacing struts?
what is the difference between *.do & /do.*/? So what is the diffenence btn extension mapping & path mapping.What is those difference in work effect?
What is the purpose of dispatcher result type?
What types of Actions we have in Struts?
what is project architecture?give brief explanation about project architecture?
3 Answers CTS, Etisalat, IBM, Infinite Computer Solutions, Mphasis,
What is struts? Explain
Is struts efficient?
what is meant by Struts Validator Framework?
List the important attribute and elements of action mapping under struts.
What is the default location of result pages and how can we change it?
What is the differences between struts1 and struts2?