• 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

Can struts 2 and an older version co-exist?

 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, how much better is struts 2 compared to the previous versions?

I understand that they are more testable and uses classes that are not coupled with the servlet base.

Do you see any reason any company will stay with the older struts?
 
author
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your company has existing Struts 1 apps that are working fine, I wouldn't bother upgrading to Struts 2. For new development, I think Struts 2 should get a serious look as it expands on the same fundamentals as Struts 1 but at the same time incorporating many lessons learned from production deployments and features from other frameworks.

In addition to the obviously excellent Struts 2 in Action book, I recommend taking a look at the Struts 2 migration guides, particularly the tutorials by Ted Husted and Ian Roughley:

http://struts.apache.org/2.x/docs/migration-guide.html
 
Ranch Hand
Posts: 471
Mac OS X Hibernate Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would like to add an answer to your title question. Yes, they can coexist in the same project. The only thing is that the servlet mappings to the actions are going to be different, so that struts 1 will manage some requests, and struts 2 will manage others
 
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Brown,
Currently we are using Struts 1.2 on a project and we have developed some custom ways to make AJAX calls. Now we are looking to upgrade to Struts 2 to take advantage of things like easier Ajax integration in Struts 2. But after seeing you reply regarding upgrades, i was curious to know whether it would be worthwhile to go ahead with the upgrade?

Regards,
Reghu
 
reply
    Bookmark Topic Watch Topic
  • New Topic