Difference between Spring framework and Struts framework?

Answers were Sorted based on User's Feedback



Difference between Spring framework and Struts framework?..

Answer / samy

as

Is This Answer Correct ?    0 Yes 0 No

Difference between Spring framework and Struts framework?..

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

Post New Answer

More Java J2EE AllOther Interview Questions

What are the types of the main implementing classes in the map interfaces? : java collections

0 Answers  


what protocols does JNDI provide an interface to?

1 Answers  


What is java collection? : java collections

0 Answers  


what is the difference between through and throws?

2 Answers   HCL,


What is the use of log4j and how to make use of that in a application?

2 Answers  






How is hashset maintained in memory by java ?

0 Answers  


which book is the best for preparing for SCWCD 1.5

4 Answers   Google,


What is a constructor?

4 Answers  


What are the differences between the java collection and the java list? : java collections

0 Answers  


Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.

0 Answers  


Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?

0 Answers   Cap Gemini,


What are the uses of the set interfaces in the java collections? : java collections

0 Answers  


Categories