wood burning stoves 2.0*
The moose likes Other Application Frameworks and the fly likes Migrating from Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Migrating from Struts" Watch "Migrating from Struts" New topic
Author

Migrating from Struts

Ajay Jeswani
Greenhorn

Joined: Feb 17, 2008
Posts: 5
Hi Frederic !!

Congratulations for the book.

I hven't used Stripes in any of my project.

1) How easy it is to migrate an app from Struts to Stripes ?
2) We can use any template engine with Stripes i.e FreeMarker, Velocity ?

Best regards'
Ajay
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

1) How easy it is to migrate an app from Struts to Stripes ?


This is a bit dated but still relevant to your question. I'm currently semi-migrating an application from Struts to Stripes and I can attest to the ease of the transition. That said, I stand firm on the grounds of if it works don't break it. There's really no need to migrate an existing working application. But if you are making changes to it and have the time I'd say moving to Stripes is a wise decision. YMMV.

2) We can use any template engine with Stripes i.e FreeMarker, Velocity ?


JSP And Freemarker are the supported template systems. Velocity may work without much hassle. I just think no one has cared enough to try yet.

BTW, I don't mean to answer for Freddy. I just figure the faster you get an answer the better. If Freddy has more to add I'm sure he'll chime in.


GenRocket - Experts at Building Test Data
Frederic Daoud
author
Ranch Hand

Joined: May 22, 2008
Posts: 71
Originally posted by Gregg Bolinger:

BTW, I don't mean to answer for Freddy. I just figure the faster you get an answer the better. If Freddy has more to add I'm sure he'll chime in.


On the contrary, I appreciate your help Gregg, you and everyone else is quite welcome to contribute answers!

Just to add a bit more:



1) How easy it is to migrate an app from Struts to Stripes ?



Migrating from Struts to Stripes should not be a problem, because they are both action-based frameworks. Most of the work will probably involve removing code as Stripes requires much less configuration and redundant code than Struts.

As for migrating your knowledge of Struts to Stripes, that won't be a problem either. Again, Stripes is much easier to use and requires less code, but is not a paradigm-shift so you will easily grasp how it works. I speak from the experience of having seen co-workers coming from a Struts background being able to get up to speed with Stripes.



2) We can use any template engine with Stripes i.e FreeMarker, Velocity ?



You can technically use any template engine with Stripes. More specifically, FreeMarker works very well, but Velocity lacks JSP tag library support, so you wouldn't be able to use the Stripes tag library with Velocity.


Frederic Daoud
Author, Stripes...and Java Web Development is Fun Again
Stripes book
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

That's nice Fred. Yes as you say it was based on and closely matching with Struts, it should not be a big deal!


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Will Hartung
Greenhorn

Joined: Nov 19, 2008
Posts: 13
Many folks have also incrementally migrated from Struts to Stripes, as they don't really stomp on each other. So you can try and test it out if you like and not worry about having to redo the entire site all at once.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Migrating from Struts
 
Similar Threads
WA #1.....word association
Few questions on Stripes
which framework is better to learn for a newbie?
Which technology is best to study in parallel
so, why Stripes?