• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts and JSF. What to choose to integrate with Spring and Hibernate

 
sameer chandra vogeti
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am doing a sample project which has spring as a business/service layer and hibernate as persistence layer and i have done the unit testing of the logic and persistence mechanisms.Now i want to build a web page for this project. But i am confused whether to use Struts or JSF. As i want the presentation Layer to be easy to create and less painfull. So which one is better to use? Struts or JSF


P.S :- I have only Spring and hibernate expereicne and no Presentation Layer experience(Servlets,JSP being exception). So i thought of asking for some help



 
Tim Holloway
Saloon Keeper
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I used to use Struts, but have long since dropped it in favor of JSF. But that's just my opinion. Others may feel differently.

The actual tie-ins to Spring and Hibernate are pretty much the same for both UI platforms.
 
sameer chandra vogeti
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah i agree, Struts involves tons of coding and configuration which is a nightmare. Any good turorial or reference manuals for JSF Kickstart?
 
Tim Holloway
Saloon Keeper
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, it's pretty old now, but one of the most helpful things for me was a 4-part series from IBM DeveloperWorks called "JSF for Nonbelievers" by Rick Hightower. Although ancient by JSF standards, it's still pretty much applicable today and it's a pretty good intro all the basics.

I'd also take a look at those "PDF"s, that were just recommended in another thread in this forum.

Integrating Spring is fairly easy using the Spring/JSF variable resolver that allows you to inject Spring objects into JSF objects. Unfortunately, other than to point you to springframework.org, I can't be very helpful on that. They recently converted to a new resolver that's better adapted to JSF2, but I haven't managed to master that one yet. Not enough spare time, alas.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic