Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Struts Vs Spring

 
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Matt,

I'm totally new to Spring. What I do know about it is minimal - it is a MVC framework.

But so is Struts. And Struts has wide support & is commonly used. So what would the compelling reasons for me to learn & use Spring over Struts?

Are they competing frameworks? Or they could complement each other nicely? Is Spring designed to work with Hibernate only? Can I use other OR tools such as OJB?

Is there a quick start or a skeleton web application to jumpstart the developing process in using Spring?

Cheers!
 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

What I do know about it is minimal - it is a MVC framework.


Guess this question has been answered previously. But I would change this

it is a MVC framework.


to

Spring provides a MVC framework as well.

So yeah Spring 'MVC' and Struts are probably competing out there. But guess Spring allows you to plug-in any web application framework you want. Spring MVC happens to be another option thats all.


Is Spring designed to work with Hibernate only? Can I use other OR tools such as OJB?


Lookslike Matt already has
this
for you!
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to read the docs over at Springframe Site to get a better understanding of Spring.

Spring is a lightweight IoC container like PicoContainer. These containers support for Dependency Injection. Dependency injection is a powerful tool by itself, but cool thing about the Spring is that they aren't forcing you to use a particular MVC, or data access method. Spring supports JDBC, Hibernate, iBatis and more for database access. And for your question it supports Struts, Spring MVC, WebWorx and etc for MVC. It also has cool things like AOP support.

HTH,

Jeff Duska

[ October 27, 2004: Message edited by: Jeff Duska ]
[ October 27, 2004: Message edited by: Jeff Duska ]
 
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeff I would like to correct a little bit:


Dependency injection is a powerful tool by itself,



no, it is a principle.

Moreover there is no direct relation between a IoC/DI solution and a MVC solution. Spring has chosen to use this in order to provide a full blown lightweight solution.
 
I'm thinking about a new battle cry. Maybe "Not in the face! Not in the face!" Any thoughts tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic