Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
Whatever you say buddy! And I believe this tiny ad too:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic