• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Changes when transforming application from Struts to Spring framework.

 
Greenhorn
Posts: 10
MS IE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am new to spring and I want to transfer a Struts application into Spring framework.
So what precaution should I take to transfer it into Spring Framework.
Which are the major changes,I should look at?
If anyone had this type of experience,please share it with me.

Thank you in advance.
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Depends, are your removing all Struts, no more Action classes, or just having Struts and Spring together?

If keeping Action classes, just have them extend ActionSupport and inject your Spring beans into it, no longer needing any ServiceLocator pattern.

If moving to Spring MVC, then all your Actions will have to be rewritten with Controller classes.

Mark
 
vishalp pradhanp
Greenhorn
Posts: 10
MS IE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mark,
I am going to remove all actions classes from struts and I have to create a template of Spring for jsp,controller and beans,
so that others also can refer to that template and generate application.
So I am wondering which controller should I use?that will handle all types of actions,
as in my jsp most of the times multiple actions are present.

Thank you.
 
Mark Spritzler
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

vishalp pradhanp wrote:Hi Mark,
I am going to remove all actions classes from struts and I have to create a template of Spring for jsp,controller and beans,
so that others also can refer to that template and generate application.
So I am wondering which controller should I use?that will handle all types of actions,
as in my jsp most of the times multiple actions are present.

Thank you.



I don't know your code to even give you an answer. Except, one that isn't too hard, but at the same time not trivial.

Also, make sure you are using the latest version of Spring 3.0.5 and that you use Spring MVC Annotations. Use the latest, don't do things the old way in Spring MVC.

Mark
 
vishalp pradhanp
Greenhorn
Posts: 10
MS IE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you mark,
I will keep your suggestion in mind.
 
World domination requires a hollowed out volcano with good submarine access. Tiny ads are optional.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic