• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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



 
Saloon Keeper
Posts: 27887
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 27887
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic