wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts 1.x to Struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1.x to Struts 2" Watch "Struts 1.x to Struts 2" New topic
Author

Struts 1.x to Struts 2

Ashish Soni
Greenhorn

Joined: May 25, 2008
Posts: 24
I am just wonderding if struts 2 supports backward compatibility with Strust 1.x.

Please let me know.

Ashish
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Originally posted by Ashish Soni:
I am just wonderding if struts 2 supports backward compatibility with Strust 1.x.

No, it doesn't. If you move to Struts 2, you must migrate your application code.


Merrill
Consultant, Sima Solutions
Ashish Soni
Greenhorn

Joined: May 25, 2008
Posts: 24
Thanks , But can both struts 1 and struts 2 can be used in application at the same time as it is not possible to do migration in one time.

Ashish
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
It is possible to have a struts 2 filter mapped to "*.action" and a struts 1 servlet mapped to "*.do" both defined for the same application. For more information on this see the following link:

http://opensource.atlassian.com/confluence/oss/display/STRUTS/Migrating+to+Struts+2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts 1.x to Struts 2
 
Similar Threads
Struts 1.x
Struts 2 Question
How to get file path in Struts file upload tag
Difference between struts 1.1 and 1.2
struts 1 to struts 2