Difference between Spring framework and Struts framework?
Answers were Sorted based on User's Feedback
Answer / 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 |
What are the types of the main implementing classes in the map interfaces? : java collections
what protocols does JNDI provide an interface to?
What is java collection? : java collections
what is the difference between through and throws?
What is the use of log4j and how to make use of that in a application?
How is hashset maintained in memory by java ?
which book is the best for preparing for SCWCD 1.5
What is a constructor?
What are the differences between the java collection and the java list? : java collections
Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.
Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
What are the uses of the set interfaces in the java collections? : java collections