aspose file tools*
The moose likes Other Application Frameworks and the fly likes Spring and JDO w/ Struts or JSF? 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 » Frameworks » Other Application Frameworks
Bookmark "Spring and JDO w/ Struts or JSF?" Watch "Spring and JDO w/ Struts or JSF?" New topic
Author

Spring and JDO w/ Struts or JSF?

Matt Fury
Greenhorn

Joined: Mar 04, 2002
Posts: 23
We're looking into using Spring right now but its currently up in the air whether we'll use Struts or JSF with Kodo JDO. Anyone have any experiences with these and any recommendations/pitfalls to avoid?

Thanks!


-------<br />Sun Certified Java 2 Programmer<br /><a href="http://www.lfhsolutions.com" target="_blank" rel="nofollow">http://www.lfhsolutions.com</a><br />matt@lfhsolutions.com
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Right now, Spring and Struts are probably a better fit because a lot of people have been/are working with that combination while JSF is still pretty much a thing of the (near) future. Having said that, and as a strictly personal opinion, I'd recommend avoiding Struts and going with JSF. The Struts Action/ActionForm architecture doesn't go well with my preferences. Your mileage may vary, of course.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Matt Fury
Greenhorn

Joined: Mar 04, 2002
Posts: 23
I believe we're leaning towards Struts but I'd for one like to see JSF myself. I've been reading up on JSF and it appears to be "Struts on Steroids". Hopefully it won't suffer the consequences of being juiced up.
Darrin Smith
Ranch Hand

Joined: Aug 04, 2003
Posts: 276
FWIW, I'm working on a project right now using JSF, and I'm thinking about using Spring as the back end if I can be convinced of its worth and ease of integration with JSF (I hear "oh yeah it can be done" but I haven't seen a good explaination of HOW it IS done).

BTW, for JSF, I'd strongly suggest you look into Java Studio Creator...talk about EASE of development. Really nice tool IMHO...a little slow maybe, but it sure makes up for it in what it gives you (think drag and drop JSP).
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Darrin Smith:
FWIW, I'm working on a project right now using JSF, and I'm thinking about using Spring as the back end if I can be convinced of its worth and ease of integration with JSF (I hear "oh yeah it can be done" but I haven't seen a good explaination of HOW it IS done).

Well, as far as I can tell (based on reading chapter 10.3 from Spring in Action) there's not much to integrate... Basically you put your model object into the request, let JSF tags generate the UI, and JSF invokes your model object's "submit" method upon form submit. The Spring stuff comes into the picture in doing what you want to do when that submit call comes.
Andy Dejung
Greenhorn

Joined: Sep 05, 2002
Posts: 20
I have bean making a prototype with JSF. It was much more difficult then I expected. I have 4 years Struts experiences but JSF and JSTL are quite different to us.
In the current project we choose know to use Tapestry , Spring and Hibernate. A prototye was made much faster and easier even Tapestry works bit different. I think it is a very good framework and has many advantages like your pages are readable by standart html development tool like dreamweaver.
Marc Logemann
Greenhorn

Joined: Feb 22, 2005
Posts: 2
I am actually running the combination you are evaluating (Spring+Struts+Kodo) and so far everything runs pretty well. With some help of Matts Book and the KodoJDO Spring Example application, i was able to get a first running CRUD app within two days.

So i can recommend this combination. But i am also quite new to Spring and i am definitely not a Spring Pro at this very moment.


regards<br />Marc Logemann<br /><a href="http://www.logemann.org" target="_blank" rel="nofollow">http://www.logemann.org</a>
Rob Harrop
Author
Ranch Hand

Joined: Nov 03, 2004
Posts: 44
I guess if I were in your position I would be talking about Spring MVC or JSF or Tapestry - not Struts. Not that there is anything particularly wrong with Struts, but in my mind Spring MVC just feels better.

JSF and Tapestry are both excellent frameworks and can be backed with a Spring-based middle tier. There seems to be a lot of FUD surrounding JSF and to a lesser degree Tapestry, but my experiences with both have been excellent - I think the main problem is that they are very different to what we are used to in the Java world and they are much closer, conceptually, to ASP.NET.

I guess if you are just adopting Spring for the first time, then pick the web framework you know. There is no reason to try to use two new frameworks - that will just add unnecessary complexity to your project.

Rob
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring and JDO w/ Struts or JSF?