aspose file tools*
The moose likes JSF and the fly likes Struts and JSF. What to choose to integrate with Spring and Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Struts and JSF. What to choose to integrate with Spring and Hibernate" Watch "Struts and JSF. What to choose to integrate with Spring and Hibernate" New topic
Author

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

sameer chandra vogeti
Greenhorn

Joined: Jan 31, 2008
Posts: 14
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

Joined: Jun 25, 2001
Posts: 16145
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
sameer chandra vogeti
Greenhorn

Joined: Jan 31, 2008
Posts: 14
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

Joined: Jun 25, 2001
Posts: 16145
    
  21

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts and JSF. What to choose to integrate with Spring and Hibernate