wood burning stoves 2.0*
The moose likes Struts and the fly likes Migration from struts1.1 to struts2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Migration from struts1.1 to struts2.0" Watch "Migration from struts1.1 to struts2.0" New topic
Author

Migration from struts1.1 to struts2.0

Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

Hi All,

Can some one help me on how to upgrade an existing application in struts1.1 to 2.0 with less efforts.

Thanks in Advance.

Ananth


Ananth Chellathurai [Walk on software]
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8876
    
    8

There are a couple of resources in the Struts 2 Guides Page


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

No enough details there.
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 460
Well, I don't think that there is an easy way to migrate an existing struts 1.x application to be a struts 2.x application. What I suggest is that to add the struts 2 jars, and configure it to use a different extension/servlet mapping (for example, struts 1 will be responsible for ".do", and struts 2 for ".action"). This way you will have your old application untouched, and code the new modules using struts 2.x. You can then change your old application to struts 2 one module at a time. Basically, if you have a well designed application, where the business logic is in POJOs, and you use struts actions for the workflow, presentation and the data validation only, you will not face a lot of problems migrating.


Visit my blog: http://jnassef.blogspot.com/
Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

Thanks for your wonderful suggestions. Is there any big changes in the Action classes of struts 2.0?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Migration from struts1.1 to struts2.0