1.3. Migrating from Struts 1.0 to Struts 1.1
Problem
You need to migrate a Struts 1.0-based application to Struts 1.1.
Solution
Replace the Struts 1.0 JAR files, tag library descriptor (TLD) files, and XML DTD files with the corresponding files from Struts 1.1. If you have JSP pages that use the absolute URI from the Struts tag libraries, you'll need to change these. Recompile your application using the new libraries and address any compilation errors.
Finally, you'll want to modify your code that is using deprecated APIs to use the new Struts 1.1 APIs.
Discussion
While Struts 1.1 was a significant change to Struts 1.0, functionally speaking, applications based on Struts 1.0 can be migrated without much difficulty by replacing the Struts 1.0 JARs and TLDs with the corresponding files for Struts 1.1. You will need to change your use of the tag library URIs, as they have changed in Struts 1.1; this generally means changing your web.xml deployment descriptor. If you use the absolute URIs in your JSP pages, these values will need to be changed as well. Table 1-3 shows the changes to the tab library URIs.
Table 1-3. Struts tag library URIs
|
Struts 1.0.2 Taglib URI |
Struts 1.1 Taglib URI |
|---|---|
|
http://jakarta.apache.org/struts/tags-bean-1.0.2 |
http://jakarta.apache.org/struts/tags-bean |
|
http://jakarta.apache.org/struts/tags-html-1.0.2 |
http://jakarta.apache.org/struts/tags-html |
|
http://jakarta.apache.org/struts/tags-logic-1.0.2 |
http://jakarta.apache.org/struts/tags-logic |
|
http://jakarta.apache.org/struts/tags-template-1.0.2 ... |