This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes upgrade struts 1.2 to struts 2? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "upgrade struts 1.2 to struts 2?" Watch "upgrade struts 1.2 to struts 2?" New topic

upgrade struts 1.2 to struts 2?

Anthony Karta
Ranch Hand

Joined: Aug 09, 2004
Posts: 342
is it worth to upgrade application built with struts 1.2 to 2.0?


is it possible to run struts 1.2 application in struts 2.0 implementation (backward compatibility) or they are completely different?

thanks all

Joe Ess

Joined: Oct 29, 2001
Posts: 8836

There are a number of migration resources in the Struts 2 Guides
Struts 2 is not backwards-compatible, however it is possible to have 1.x and 2 run alongside each other:
Add the Struts 2.0 JARs to your exisitng Struts 1.3 application. Configure S2 to handle *.action requests and let S1 handle *.do requests. S1 and S2 can run side by side, within the same web application. Teams can implement new features in the latest version, and migrate older pieces as needed. Optionally, some common resources may be shared between S1 and S2, like messages, validation rules, and Tiles configurations, making for an even smoother migration.

Migration Strategies

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: upgrade struts 1.2 to struts 2?
Similar Threads
integating jsf with struts 1.x
Workflow and actions
why filtert class and listner class used in web.xml
RAD 7.5 - Upgrade from JSP 1.2 to JSP 2.0
Which files to replace for upgrading application from struts 1.1 to struts 1.2