File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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

Can struts 2 and an older version co-exist?

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2068
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

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:
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 471

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:
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?


Cheers,<br />Reghu Ram T<br /> <br />SCJP 1.4 - 98 %, SCBCD 1.3 - 94 %, SCMAD 1.0 - 92 %
I agree. Here's the link:
subject: Can struts 2 and an older version co-exist?
It's not a secret anymore!