aspose file tools*
The moose likes Spring and the fly likes App migration - Struts to spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "App migration - Struts to spring" Watch "App migration - Struts to spring" New topic
Author

App migration - Struts to spring

Bala RThiagarajan
Greenhorn

Joined: Dec 21, 2007
Posts: 8
Hi All,
In our organization, there is a major migration(around 200 apps) work happening for all struts app to spring. Most of the application are very small application with a max of 3 to 5 main JSPs.

As far as i have seen all app should be rewritten, since jsps has script lets.. validation has been done using JS.. persistence layer should also be modified implementing hibernate.

Give this i am not sure how plan for migration ..from where to start how to start since the the apps are huge in numbers. If any one already worked on such a huge migration projects it will be great if they can throw some light on how to structurise a plan for this.

Like any advised or suggested implementation methodology that could help to save time or make the implementation less tedious.

Thanks
BalaRT
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Is there a compelling reason to migrate?

Personally, I'd first move all Java code out of the JSPs and into the actions. I'd then convert the actions into Spring controllers. I'd leave the data access the same for now (I just don't see how an app with only a couple of pages would benefit from a move to Hibernate, but it depends on information I don't have). If the apps didn't already have back-end validation I'd definitely fix that as it's a huge security risk.

Another option would be to introduce Spring into the existing apps, move data access/services into Spring beans injected into the Struts actions, then convert the apps during naturally-occurring maintenance work.
Bala RThiagarajan
Greenhorn

Joined: Dec 21, 2007
Posts: 8
Thanks a lot for the suggestion .. I think your input will be use full for sure..

regarding your question on reason for migration
Yep .. these app were developed log back i guess when they were using WAS 3.5X version and now we are migrating to WAS 7.0 .. and thats why there is a need for migration.. there are other internal framework related reason as well for this migration.

Kindly let me know if you can provide more thoughts on this..

Once agian thanks a lot for your suggestion ..


ratan kamble
Greenhorn

Joined: Aug 09, 2013
Posts: 2
hello friend,
I have written a blog regarding struts to spring3(using annotations) migration. Please check the following link..

http://java-developers-space.blogspot.in/2013/08/struts-to-spring-migration.html

I hope, it will be useful..
Jayesh A Lalwani
Bartender

Joined: Jan 17, 2008
Posts: 2409
    
  28

Is there scope for reuse of code between apps, you might want to think about designing building blocks around reusable pieces as you migrate to spring
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: App migration - Struts to spring