This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes Can struts 2 and an older version co-exist? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Can struts 2 and an older version co-exist?" Watch "Can struts 2 and an older version co-exist?" New topic
Author

Can struts 2 and an older version co-exist?

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2046
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?
Don Brown
author
Greenhorn

Joined: Apr 22, 2008
Posts: 25
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
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 460
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


Visit my blog: http://jnassef.blogspot.com/
Reghu Ram Thanumalayan
Ranch Hand

Joined: Oct 21, 2003
Posts: 193
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


Cheers,<br />Reghu Ram T<br /> <br />SCJP 1.4 - 98 %, SCBCD 1.3 - 94 %, SCMAD 1.0 - 92 %
 
wood burning stoves
 
subject: Can struts 2 and an older version co-exist?
 
Similar Threads
Good books on Struts2
Struts
is STRUTS2 is used
Request Processor
Scaffolding in Struts 2...