Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Spring and JDO w/ Struts or JSF?

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Matt Fury
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Author
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Here. Have a potato. I grew it in my armpit. And from my other armpit, this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!