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 is the use of the list interface in the java collection? : java collections
what is mean by hasing and maping in java platform and advantage?
How do I find jre path in windows?
Which java collection class can be used to maintain the entries in the order in which they were last accessed?
Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com
HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS
What are the different types of ways where you can iterate over a list? : java collections
who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.
can u draw class/object diagram for ATM
What is the difference between comparable and comparator in java.util pkg?
What are the interfaces in java collections? : java collections
What is the enumerator of the java collection framework? : java collections
What are the considerations to be made in case of loops in java ?
What do you understand by synchronization? Why is it important?
What are the uses of the set interfaces in the java collections? : java collections