Sunday, February 2, 2014

Difference between Spring and Struts framework:

The major differences between Spring framework and Struts framework are :

Spring
Struts
Spring is an application framework in which Spring MVC is one of the modules of Spring framework.
Struts is a web framework which can be used to develop web applications.
Spring implements IOC Design Pattern.
Struts implement MVC Design Pattern.
It provides abstraction layer on multiple Java/J2EE technologies including Servlet, JSPs. Also provides abstraction on other framework software.
It provides abstraction layer only on Servlet, JSP technology.
Spring is a Layered Architecture.
Struts is a not a Layered Architecture.
Spring Framework is said to be a non-invasive means it doesn’t force a programmer to extend or implement their class from any predefined class or interface given by Spring API.
Struts is said to be invasive. In Struts we used to extend Action Class.
It forces the programmer that, the programmer class must extend from the base class provided by Struts API.
Spring provides easy integration with ORM, JDBC technologies.
In Struts, integrating with ORM,


JDBC technology, we need to do manually coding.
Gives built-in middleware services like transaction, logging, connection pooling etc.
Doesn’t give built-in middleware


services.
Spring is Lightweight framework.
Struts is Heavyweight framework.
Spring is loosely coupled.
Struts is tightly coupled.
It is not easy to integrate with other client side technologies.
It is easy to integrate with other  


client side technologies.
Spring MVC just provides tags for basic HTML form tags.
Struts 2 provides many out-of-box JSF styled complex and composite tags
Such as: Ajax DOJO tags
For View component, Spring allows JSP, Velocity, Freemarker, Excel and PDF
For View component Struts allows only JSP.
Spring MVC provides more handler mappings.
Struts doesn’t have specific handler
mappings but uses Action mappings.
Spring clear module division between Model, View and Controller.
Struts mixes Controller and Model.
Advantages of Spring Framework:


  • Transaction management
  • Support for Messaging
  • Support and Integration with Other Frameworks (Eg: Hibernate, Struts, Tapestry.. etc)
Advantages of Struts Framework:


  • Excellent support for Tag Library, which has wide industry acceptance.
  • Easy to integrate with other client side technologies.

14 comments:

Murali Rajesh said...

Hibernate and spring are the frameworks of Java. A java developer should be well aware of these frameworks in order to master the technology and work efficeiently.
spring training in chennai | hibernate training in chennai
FITA Academy reviews

Murali Rajesh said...

Hibernate and spring are the frameworks of Java. A java developer should be well aware of these frameworks in order to master the technology and work efficeiently.
spring training in chennai | hibernate training in chennai
FITA Academy reviews

Unknown said...

Java is the most robust secured and multi threaded programming language which is the reason why most the the developers go for java. A single java code can be used for various platforms.
JAVA training in chennai | java training institutes in chennai | FITA Academy Chennai

Unknown said...

Oracle database management system is a very secure and reliable platform for storing database and secured information.Due its reliable and trustworthy factor oracle DBA is famous all around the globe and is prefered by many large MNC which are using database management system.
oracle training in Chennai | oracle dba training in chennai | oracle training institutes in chennai

Unknown said...

Java is a programing language which needs no introduction. Java is immensly popular anguage which is used in building softwares in mobile app or desktop. Even today java is used to program tools like hadoop, owing to this java has becom imensley popular and one of the most preffered language around the world.
Java training in Chennai | Java training institute in Chennai | Java course in Chennai

Aparna said...

This is the awesome post and I have huge information from your creative blog. The admin presented the content is very interesting and also comprehensive. Thank you for your sharing, Keep updating...
Oracle Training in Chennai
Oracle Training institute in chennai
Tableau Training in Chennai
Spark Training in Chennai
Unix Training in Chennai
Power BI Training in Chennai
Oracle DBA Training in Chennai
Oracle Training in Chennai
Oracle Training institute in chennai

Adhuntt said...

Great blog thanks for sharing. Are you looking for digital marketing service?

digital marketing company in chennai
seo service in chennai
web designing company in chennai
social media marketing company in chennai

sasi said...

The blog you shared is very good. I expect more information from you like this blog. Thankyou.
Python Training in Chennai
Python Course in Bangalore
Angularjs course Bangalore
Angularjs Training in Bangalore
Web Designing Course in bangalore
Web Development courses in bangalore
Salesforce Course in Bangalore
salesforce training in bangalore
Big Data Training in Bangalore
Hadoop Training in Bangalore

saran said...

"The provided information’s are very useful to me.Thanks for sharing.Keep updating your blog.
Digital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery

"

KITS Technologies said...

Very neat blog article.Really looking forward to read more. Want more.
Oracle Data Integrator online online training
Oracle DBA online online training
Oracle Enterprise Manager online online training

nayar said...

Awesome blog. Thanks for sharing such a worthy information....
Python Training in Bangalore
Python Classes in Pune
Python Training in Hyderabad

Vijayakash said...

I really enjoyed this article. I need more information to learn so kindly update it.

RPA Training in Tambaram
RPA Training in Anna Nagar
RPA Training in Velachery
RPA Training in T nagar
RPA training in Porur
RPA Training in OMR
RPA Training in Chennai

Jothi said...

Excellent Blog to read. You have shared a useful information. Thank you.
Best SEO Training in Chennai
SEO Classes in Chennai

Sneha Cubestech said...

Hey there
Thanks for sharing this site, Keep on updating more like this

Best Software Development company
Best Staffing services in chennai
Best web development company