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

can u draw class/object diagram for ATM

5531


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

2563


Which interface does java.util.hashtable implement?

673


What are the main classes of the list interfaces? : java collections

576


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

592






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

550


Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.

1585


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

608


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

614


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

593


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

540


What are the interfaces in java collections? : java collections

616


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

539


please mail me the interview question based on java/j2ee

1533


what is mean by hasing and maping in java platform and advantage?

1830