It's not a secret anymore!*
The moose likes Other Application Frameworks and the fly likes Struts or Spring ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Struts or Spring ?" Watch "Struts or Spring ?" New topic
Author

Struts or Spring ?

Vu Pham
Ranch Hand

Joined: May 28, 2005
Posts: 100
Hi all,
I want to learn about web framework . I dont know Struts and dont know Spring . Where should I begin ? Do I must learn Struts first , then learn Spring ?
Karthik Vijayarajan
Ranch Hand

Joined: Mar 13, 2005
Posts: 43
If you are comfortable with some basic stuff like servlets, you can start with any framework :-) Struts or Springs doesnt matter !!!


Thanks
Karthik


Karthik <br />SCJP 1.4 SCWCD 1.4 SCBCD 1.3
Michael Duffy
Ranch Hand

Joined: Oct 15, 2005
Posts: 163
Originally posted by Anh Vu:
Hi all,
I want to learn about web framework . I dont know Struts and dont know Spring . Where should I begin ? Do I must learn Struts first , then learn Spring ?


Struts is a web framework; Spring is a dependency injection framework. Two very different things. Spring is bigger and more inclusive than Struts.

How well do you know Java and web development in general? Have you written and deployed Java web apps? Do you know servlets and JSPs well? If so, there's an advantage to going with Spring. It'll do more for you than Struts.

One other point to consider: Struts isn't being developed anymore. It's considered "mature", and the developers have moved on to other technologies like Java Server Faces. Spring is still quite active, so you might be better off going with Spring.

But be warned - Spring is bigger and different from what you're used to. Start with the on-line tutorial (Spring MVC step by step) and see what you think. If you like it, get a good book to act as your guide. (e.g., "Pro Spring" or "Spring in Action")


%
Pavan Tummala
Ranch Hand

Joined: Dec 25, 2004
Posts: 74
Spend some time learning both..take up whichever u feel comfortable with..I guess you meant Spring MVC in spring..Spring would be really interesting if you can learn hibernate as well. oh by the way struts is on its way out..but doesnt hurt to learn.. will help u in analysing how different frameworks work..will help u one day when u become an architect


If Java had true garbage collection, most programs would delete themselves upon execution -- Robert Sewell
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

If you are going to learn a new framework, learn Tapestry. It rocks!


GenRocket - Experts at Building Test Data
Vu Pham
Ranch Hand

Joined: May 28, 2005
Posts: 100
Thanks all very much . Uhm , I have another question . I have heard about Ruby on Rails . Would you like to compare Ruby on Rails with some Java frameworks ?
Michael Duffy
Ranch Hand

Joined: Oct 15, 2005
Posts: 163
Originally posted by Anh Vu:
Thanks all very much . Uhm , I have another question . I have heard about Ruby on Rails . Would you like to compare Ruby on Rails with some Java frameworks ?


I'll confess before I start that I've only a reading knowledge of Ruby and Ruby on Rails.

As I understand it, Ruby on Rails helps to do "typical" problems (e.g., exposure of relational data in a web browser) easily. Instead of getting out the big JEE hammer, it's possible to accomplish problems like webifying data more in the manner that Microsoft developers are used to.

There's nothing like a JEE container to worry about starting and stopping.

It'd be worth knowing, in my opinion. It's a goal of mine for 2006.
 
 
subject: Struts or Spring ?