Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is Struts the framework I'm looking for?

 
Chris Stewart
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With all of the options out there, I've pretty much narrowed it to Struts 2.x and Spring. My needs are somewhat simple. I want an easy to use/implement framework that doesn't turn away Ajax driven work that is focused on MVC. I don't really need anything special aside from those things. I'm planning to use Hibernate for an OR mapper. Is Struts what I'm looking for or does Spring sound better suited for these simple requests?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65104
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without knowing what you want to get out of a framework, that's really difficult to answer.

Do you need all the framework bell and whistles, or do you just need a front controller?
 
Chris Stewart
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess I don't really know what those extras really are. I certainly need the MVC model. I'm planning to use Hibernate like I mentioned. I'm also planning on using EJB for the business layer. Aside from that, I'm not sure what the frameworks can provide me with. I've read the marketing-class intros but it really hasn't hit home yet I guess.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not an either/or situation with Struts 2 and Spring. If you look at the tutorials, you'll see that Struts 2 integrates easily with Spring. Spring is used most often for it's AOP (Aspect Oriented Programming) features and dependency injection. Although it has a view framework (Spring MVC) it isn't all that popular for whatever reason. I'd suggest using Struts 2 for the front end stuff, and Spring for some of the model portions of the application.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic