Home Answers Viewqa Framework whats the difference between struts and spring frameworks.why we use spring instead of struts

 
 


surendradama
whats the difference between struts and spring frameworks.why we use spring instead of struts
2 Answer(s)      a year ago
Posted in : Framework

whats the difference between struts and spring frameworks.why we use spring instead of struts

View Answers

May 9, 2012 at 4:13 PM


Difference between Struts and Spring:

1)Struts is a web framework while Spring is not.

2)Spring is a Layered Architecture while Struts is not.

3)Struts is heavy weight while Spring is light weight.

4)Struts supports tag Library while Spring does not.

5)Spring is loosely coupled while Struts is tightly coupled.

6)Spring provides easy integration with ORM technologies while in struts, we need to do coding manually.

7)Struts easily integrate with other client side technologies. It is not easy in case of spring.

Struts Tutorials

Spring Tutorials


November 27, 2012 at 12:08 PM


Firstly, Struts is a sophisticated framework offering the easy 2 develop, structured view/presentation layer of the MVC applications. Advanced, robust and scalable view framework underpinning reuse and seperation of concerns to certain extent. Springs is a Lightweight Inversion of Control and Aspect Oriented Container Framework. Every work in the last sentence carry the true purpose of the Spring framework. It is just not a framework to integrate / plug in at the presentation layer. It is much more to that. It is adaptible and easy to run light weight applications, it provides a framework to integrate OR mapping, JDBC etc., Infact Struts can be used as the presentation tier in Spring.

Secondly, Springs features strictly associate with presentation stuff. It offers Tiles to bring in reuse at presentation level. It offers Modules allowing the application presentation to segregate into various modules giving more modularity there by allowing each module to have its own Custom/Default Request Processor. Spring provides Aspect Oriented programming, it also solves the seperation of concerns at a much bigger level. It allows the programmer to add the features (transactions, security, database connectivity components, logging components) etc., at the declaration level. Spring framework takes the responsibility of supplying the input parameters required for the method contracts at runtime reducing the coupling between various modules by a method called dependency injection / Inversion of Control.

Thirdly, 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.









Related Pages:
whats the difference between struts and spring frameworks.why we use spring instead of struts
whats the difference between struts and spring frameworks.why we use spring instead of struts  whats the difference between struts and spring frameworks.why we use spring instead of struts
Difference between Struts and Spring
Difference between Struts and Spring  What are the difference between Struts and Spring?   Hi Friend, Differences: 1)Struts is a web framework while Spring is not. 2)Spring is a Layered Architecture while Struts
why we use struts framework instead of springs
why we use struts framework instead of springs  why we use struts framework instead of springs    It depends upon your application requirements.In some cases spring is better and in some cases struts is better
spring - Spring
spring  give me the explanation about spring>and give me the difference between spring and EJB 3.0 WHAT IS THE USAGE OF SPRING WHERE WE HAVE TO USE IT? GIVE ME ONE EXAMPLE
diff between spring and struts in java
diff between spring and struts in java  diff between spring and struts in java
what is diffrence between the spring and ejb which is better for small application - Spring
appplication.what is diffrence between the struts with spring application and struts without spring application  Hi Friend, Difference between Spring and EJB...what is diffrence between the spring and ejb which is better for small
Difference between struts and JSF
Difference between struts and JSF  What is the difference between struts and JSF
An introduction to spring framework
, Spring suggests that we make use of ordinary Java beans, with some slight... but to share my perception with our readers. In spring, we can make use... is easier. We do not need to start the EJB container , for testing. b) As Spring
What is the difference between hibernate and spring
What is the difference between hibernate and spring  Hi, What is the difference between hibernate and spring. Thanks
Integration Struts Spring Hibernate.
Integration Struts Spring Hibernate.  Integration Struts Spring Hibernate
spring controller V/S stuts Action - Spring
spring controller V/S stuts Action  we are going to use spring framework so what is better spring controller or struts action
spring
spring   i am a beginner in java.. but i have to learn spring framework.. i know the core java concepts with some J2EE knowledge..can i learn spring without knowing anything about struts
Spring Tutorial
Spring Tutorial In this section we will read about the Spring framework.... Productivity : One of the main benefit of use of Spring is that it increases... be integrated with other Java frameworks and ORM. Integration of Spring with Struts
Introduction to spring 3, Spring framework 3
Introduction to spring 3 In this section we will discuss about Spring 3... the components selectively. You can use IoC container of spring and any other MVC framework such as Struts along with Hibernate or JPA in your application. The Spring
plese tell -Struts or Spring - Spring
about spring. which frameork i should do Struts or Spring and which version. i..., You need to study both struts and spring. Please visit the following links: http://www.roseindia.net/spring/index.shtml http://www.roseindia.net/struts
Struts Hibernate Spring - Hibernate
Struts Hibernate Spring  HI Deepak, This is reddy.i want expamle for struts hibernate spring example.  Hi Friend, Please visit the following link: http://www.roseindia.net/struts/hibernate-spring/index.shtml
spring - Spring
the following link: http://www.roseindia.net/struts/hibernate-spring/index.shtml...spring   hi, I need sample example user update profile using spring with hibernate and spring jsp. I need the sample code very urgently. Please
Questions on Spring - Spring
you don't need to use AOP if you don't want to, AOP complements Spring IoC...Questions on Spring  1> what is Spring Framework ? why does... in Spring ? 3> what is Spring - Aspect Oriented Programming,Please explain
spring - Spring
spring  what is the difference between spring and hibernate and ejb3.0  Hi mamatha, Spring provides hibernate template and it has many.... * Spring hibernateTemplate also throws RunTime exception compared to checkd
Difference between MVC1 And MVC2 - Struts
Difference between MVC1 And MVC2  HI Friends,Can u Give me difference between mvc1 and mvc2. Thanks Prakash  Hi Friend, Please visit the following link: http://www.roseindia.net/struts/mvc-architecture.shtml
Hibernate and Spring
Hibernate and Spring In this section we will discuss Hibernate and Spring... and Spring in web application at Developing Struts, Hibernate and Spring based... can integrate Hibernate, MVC framework (Struts/Spring Web), Transaction managers
Is Singleton Default in Struts - Struts
, Is Singleton default in Struts ,or should we force any... best practice. Whether or not you use Struts doesn't really impact the service layer. Spring MVC, like Struts, uses a single shared instance for each Action
Spring
that force to use JNDI and the Struts that force to extend Action. Spring promotes...Spring         Spring Salient Features Spring stresses the OO design issues rather than
Problem in integration struts+ spring - Framework
Problem in integration struts+ spring  Problem in integration struts+ spring hi, i am facing problem in integration struts+ spring. I am also using...-INF/struts
Spring Web, Spring Web Modules, Spring Web Example
Spring Web In this section we will discuss about the modules of Spring Web layer. The Spring Web modules allows the developers to develop/manage web.... With the help of many examples we will understand the Spring Web layer modules in details
Spring Question - Spring
Spring Question  Sir what is difference between spring session and jsp session
Struts Spring Hibernate
In this section, you will learn about the Struts, Spring and Hibernate Integration
struts - Struts
-config.xml Action Entry: Difference between Struts-config.xml... 2. wht is the difference b/w the web.xml and struts-config.xml 3. what is the structure we hav to follow in struts whn and application has to run 4. where
struts - Struts
struts  we are using Struts framework for mobile applications,but we are not using jsps for views instead of jsps we planning to use xhtmls.In struts ,we writing the action ="action class name"in jsp,here in xhtml what we have
struts - Struts
struts  we are using Struts framework for mobile applications,but we are not using jsps for views instead of jsps we planning to use xhtmls.In struts ,we writing the action ="action class name"in jsp,here in xhtml what we have
Spring - Spring
for more information. http://www.roseindia.net/struts/strutsActionForms.shtml
diff bw sructs,hipernet,spring - Framework
diff bw sructs,hipernet,spring  what is the difference between structs,hipernet,spring which applications suitabe for structs,hipernet,spring ...://www.roseindia.net/struts/hibernate-spring/index.shtml Thanks
The Complete Spring Tutorial
will show you how you can integrate struts, spring and hibernate in your web... services, Schedulers, Ajax, Struts, JSF and many other frameworks. The Spring... application easy work. In this Spring tutorial series we will learn Spring
Integrate Struts, Hibernate and Spring
Integrate Struts, Hibernate and Spring   ... are using one of the best technologies (Struts, Hibernate and Spring). This tutorial...://struts.apache.org/download.cgi. We are using Struts version Download Hibernate
Simplified Application Development with Struts, Hibernate and Spring
source projects such as Spring, Hibernate and Struts and their use in J2EE... Simplified Application Development with Struts, Hibernate and Spring... knowledge about different frame works like Hibernate, Spring and Struts, which
Struts Alternative
. This is a major difference to Struts. You can use any object as a command or form...-Controller (MVC) design paradigm. Most Struts applications use a browser as the client... to your business objects. This is another major difference to Struts which is built
spring
spring   hi how can we make spring bean as prototype how can we load applicationcontext in spring what is dependency injection
Diff between Struts1 and struts 2? - Struts
Diff between Struts1 and struts 2?  What are the difference in between Struts 1 and Struts 2?  Hi Gaurav There is a big difference... describes some differences between struts1 and struts2 Feature Struts 1 Struts 2
spring hibernate - Hibernate
spring hibernate  can u tell me how we can integration of spring with hibernate?  Hi friend, For solving the problem Spring...://www.roseindia.net/struts/hibernate-spring/index.shtml Thanks
spring hibernate spring
spring hibernate spring  why are all the links in the following page broken. http://www.roseindia.net/struts/hibernate-spring/integrate.shtml... the following link: Spring Hibernate Thanks
spring with hibernate - Spring
spring with hibernate   Hi, I need the sample code for user registration using spring , hibernate with my sql. Please send the code as soon as possible. I need Spring with Hibernate code not struts. Thanks, Valarmathi
Spring Duplicate submit - Spring
Spring Duplicate submit  hi, i have problem in spring, i am pressing back or refresh my request get submitted again what i can do to avoid this,i am using only spring not struts
Struts Articles
. Logical mapping between the basic concepts of the Struts and Spring MVC frameworks... the input. Extending Struts In this article, we will use... is isolated from the user). Bridge the gap between Struts and Hibernate
Using JUnit to test struts application that uses Spring to manage object dependency - Spring
to use JTest with spring and struts. Rgs, Devishree  Hi friend...Using JUnit to test struts application that uses Spring to manage object... cases and test in-container. I am using Struts as the framework and Spring
Whar are the features of Spring Framework
of Java 5. You can use the existing frameworks such as JSF, Struts 2, Flex with Spring...Whar are the features of Spring Framework   Whar are the features of Spring Framework   Hi, In Spring 3.0 there are some new features
what is the difference between frontcontroller and actionservlet? - Struts
what is the difference between frontcontroller and actionservlet?   Hi Roseindia, sub: what is the difference between frontcontroller... is the Controller in Struts based Application  ActionServlet of Struts is part
STRUTS
STRUTS   1) Difference between Action form and DynaActionForm? 2) How the Client request was mapped to the Action file? Write the code and explain
spring with hibernate - Spring
the following link: http://www.roseindia.net/struts/hibernate-spring/user-registration...spring with hibernate   Hi, I need the sample code for user registration using spring , hibernate with my sql. Please send the code as soon
Struts Tutorials - Jakarta Struts Tutorial
; Client Side Address Validation in Struts In this lesson we... In this lesson we will create Struts Tiles Applications.  ... In this lesson we will create Struts DynaActionForm.  
Struts
Struts  Why struts rather than other frame works?   Struts is used into web based enterprise applications. Struts2 cab be used with Spring... with other frameworks like Struts2 with Hibernate, Struts2 with Spring web MCV

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.