Difference between Spring framework and Struts framework?
Answer Posted / lopus pmj
1. Struts is a web framework only, Struts can be compare with the SpringMVC. And SpringMVC is subset of the Spring framework. So we can say that Sturts can be seen as the subset of the spring framework in functionality point of view.
2. What Action class do in struts, Controller does in Spring. And action in Struts is a Abstract class but Controller in Spring is an interface, This is very good advantage of the spring.
3. Spring don't have any action from, it bind the http form values directly into pojo. Instead of initializing the form bean spring directly initialize the domain object.
4. ActionForward in struts is replace with the ModelAndView in Spring. Model component contain the business object to be displayed via view component.
5. Unlike Struts Spring don't provide any separate tag library.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the types of the main implementing classes in the map interfaces? : java collections
What is the use of hashcode in java ?
What are the different types of collections views being provided by the map interface? : java collections
What are the differences between the java collection and the java list? : java collections
Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.
What is the use of the list interface in the java collection? : java collections
What are the considerations to be made in case of loops in java ?
can u draw class/object diagram for ATM
What are the classes in the java collection framework? : java collections
Which sorting algorithm is used by collections.sort() in java ?
please mail me the interview question based on java/j2ee
What are maps interfaces in the java collections? : java collections
What is iterator in the java collections framework? : java collections
In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?
What is java collection? : java collections