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

whatis arguments &what is default argument

2 Answers   CTS,


VSS Objectives

1 Answers  


Write a interface "CarOperations" with the following methods void turnOnEngin() void turnOffEngin() void turnOnLigths() void turnOffLights() void turnLeft() void turnRight() void accelerate() void deaccelerate() void putBreaks() void releaseBreaks()

1 Answers  


What are the queues in the java collection framework? : java collections

0 Answers  


lll

1 Answers  






What are the different types of ways where you can iterate over a list? : java collections

0 Answers  


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 ?

0 Answers  


Which java collection class can be used to maintain the entries in the order in which they were last accessed?

0 Answers  


Write a postfix expression to (a*(b+c/d)*d-e)

4 Answers   Adobe,


please mail me the interview question based on java/j2ee

0 Answers   Wipro,


In HashSet duplicates are allowed while adding to the HashSet, but while retreiving the object from HashSet is not shown the duplicate values, WHY ?

2 Answers   Cap Gemini,


What are the different types of classes implemented in the set interfaces? : java collections

0 Answers  


Categories