Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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

is it possible to integrate a struts2 module with struts1 application?

 
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I wonder if it is possible to integrate struts1 application with struts2. Currently I have a mid-size struts1 application and I need to add a major module to it. I worked with struts2 and realized that it's a real first-class framework. Is it possible? if so, does anyone know a good tutorial?

* I don't wish to re-write the code that I wrote with struts1 but simply add a module to the current project with struts2.

thanks for any thoughts
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Struts 1 uses a servlet as the main controller program, and Struts 2 uses a Servlet filter. There's no reason they can't both be active in the same application. By default, the suffix ".do" will refer to a Struts 1 action, and ".action" will refer to a Struts 2 action so they won't conflict with each other. I haven't tried this, but it was recommended in an article I read by Ted Husted, who is a Struts contributor and guru of all things Struts.
[ April 13, 2008: Message edited by: Merrill Higginson ]
 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Merrill,
could you kindly point to the article you mentioned (if you remember the URL)

thanks again!
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The URL I'm giving you below is the main page with a lot of links related to conversion from Struts 1 to Struts 2. I don't remember exactly which presentation has the advice about keeping both Struts 1 and Struts 2 active, but you'll get a lot of good information from all the links on the page.

http://opensource.atlassian.com/confluence/oss/display/STRUTS/Migrating+to+Struts+2
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Peter ,

I have combined simple struts1 and struts 2 applications together and it worked fine.

This is the tutorial mentioned by Merrill.
http://opensource.atlassian.com/confluence/oss/display/STRUTS/Migrating%20Tutorial

regards
harshani
 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you both!
those url are a good starting point
 
I was born with webbed fish toes. This tiny ad is my only friend:
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