This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Migration from struts1.1 to struts2.0

 
Ananth Chellathurai
Ranch Hand
Posts: 349
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Joe Ess
Bartender
Pie
Posts: 9258
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a couple of resources in the Struts 2 Guides Page
 
Ananth Chellathurai
Ranch Hand
Posts: 349
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No enough details there.
 
Alaa Nassef
Ranch Hand
Posts: 471
Hibernate Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ananth Chellathurai
Ranch Hand
Posts: 349
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your wonderful suggestions. Is there any big changes in the Action classes of struts 2.0?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic