Difference between Spring framework and Struts framework?

Answer Posted / srinivas

Struts is developed with a Front Controller and dispatcher
pattern. Where in all the requests go to the ActionServlet
thereby routed to the module specific Request Processor
which then loads the associated Form Beans, perform
validations and then handovers the control to the
appropriate Action class with the help of the action mapping
specified in Struts-config.xml file. On the other hand,
spring does not route the request in a specific way like
this, rather it allows to you to design in your own way
however in allowing to exploit the power of framework, it
allows you to use the Aspect Oriented Programming and
Inversion of Control in a great way with great deal of
declarative programming with the XML. Commons framework can
be integrated to leverage the validation in spring framework
too. Morethan this, it provides all features like JDBC
connectivity, OR Mapping etc., just to develop & run your
applications on the top of this.

Is This Answer Correct ?    40 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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 ?

1682


What do you understand by synchronization? Why is it important?

576


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

541


What is Generic in java? Where can we write Generic ( class or method or objects or etc...)? with simple example? Thanks, Bose. Infosys 2 In which way does a Primitive data type is passed ? Sun- Microsystems 4 what is the use of declaring constructor as private? Sai- Softech 5 what is difference between global methods and local methods? 1 What is meant by class loader and how many types are there? Apple 1 what is meaning of JIT? 4 What is an abstract class? Wipro 5 what is filters and its use? Virtusa 2 why is multiple inheritance not allowed in java? Elementus-Technologies 7 Differences between jdk 1.4 and 1.5 Wipro 4 is JVM platform dependent or independent..? IBM 6 what is main purpose of abstract class? 5 what is difference between colection and collections? Tech-Mahindra 11 What error occurs if a try-catch-finally statement sequence does not have a catch clause? 2 Explain the difference between scrollbar and scrollpane? 1 Explain the differences between public, private, protected and static? 4 Explain the difference between getAppletInfo and getParameterInfo? 1 Is Cegonsoft Pvt.Ltd. a good Institute? 4 Why only one Class is public in one file? Explain in details. Thanks in Advance. 11 Which method will get invoked first in a stand alone application?

2329


What is the difference between comparable and comparator in java.util pkg?

594






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

620


What is iterator in the java collections framework? : java collections

541


please mail me the interview question based on java/j2ee

1537


What are the different types of collections views being provided by the map interface? : java collections

615


What is the use of the list interface in the java collection? : java collections

606


What is the use of hashcode in java ?

581


What is an algorithm in java collection framework? : java collections

583


What are the different types of features of the java collections framework? : java collections

578


What is java collection? : java collections

585


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.?.

1820