Win a copy of Emmy in the Key of Code this week in the General Computing 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

Replacing Struts 1

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently looking to streamline simplify an application built upon SiteMesh, Struts 1.3.8, and Hibernate3 frameworks. I am considering the inevitable replacement of Struts with an updated MVC supporting framwork.

My initial thought was that Stripes could be implemented to replace both SiteMesh and Struts in one swoop, not only greatly reducing the code base but also reducing the frameworks that are needed. However, I am more familiar with Stripes than any other option and I don't want to fall victim to the 'if your a hammer...' mentality.

So... all that background to ask two questions...

What questions should I be asking in trying to determine the best path? And...

What are other alternatives that I should consider and why?
[ May 16, 2008: Message edited by: Logan Wade ]
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What questions should I be asking in trying to determine the best path?

You've already asked the right question. Everyone should question Struts 1. You have to look at something though, in all seriousness. You should determine if rewriting the entire app in a new framework is beneficial. Once you answered that question and if the answer is "yes" then we get to the next part.

Tim wrote Stripes because he was frustrated with Struts. Because of this the conversion process is really smooth. I believe Struts to Stripes is probably the easiest framework transition out there. For example:

http://www.devx.com/Java/Article/31921

What are other alternatives that I should consider and why?

While I'd love to just say use Stripes, there probably are reasons to choose something else, though I've found Stripes to be a very good all purpose MVC framework and haven't seen a need for anything else myself with the work I've been doing over the past two years. I'd say it depends mostly on what you are already familiar with and the features that need to be implemented in the system. Again, I'd be surprised if Stripes couldn't fulfill all the MVC requirements, but maybe you need something more full stack?
 
author
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're really keen on replacing Struts with another model 2/ web MVC framework (opposed to e.g. using a component oriented framework, which would probably be quite an undertaking), imho Stripes is by far the best of the bunch.
 
He repaced his skull with glass. So you can see his brain. Kinda like 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!