Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning 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
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

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

 
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



 
Saloon Keeper
Posts: 21944
149
Android Eclipse IDE Tomcat Server Redhat Java 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: 21944
149
Android Eclipse IDE Tomcat Server Redhat Java 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.
 
And then the entire population worshiped me like unto a god. Well, me and this 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