1.4. Upgrading from Struts 1.1 to Struts 1.2
Problem
You want to upgrade an application based on Struts 1.1 to Struts 1.2.
Solution
Download the Struts 1.2 binary distribution from http://struts.apache.org/acquiring.html.
Copy the JAR files and Tag Library Descriptor (TLD) files from the Struts lib folder to your application's WEB-INF/lib folder.
If you use absolute URIs for the
taglibdirectives in your JSP pages, change these to use the new URIs shown in Table 1-4.
Table 1-4. Struts 1.1 and 1.2 Taglib URIs
|
Struts 1.1 Taglib URI |
Struts 1.2.4 Taglib URI |
|---|---|
|
http://jakarta.apache.org/struts/tags-bean |
http://struts.apache.org/tags-bean |
|
http://jakarta.apache.org/struts/tags-html |
http://struts.apache.org/tags-html |
|
http://jakarta.apache.org/struts/tags-logic |
http://struts.apache.org/tags-logic |
|
http://jakarta.apache.org/struts/tags-template |
http://struts.apache.org/tags-template |
|
http://jakarta.apache.org/struts/tags-tiles |
http://struts.apache.org/tags-tiles |
|
http://jakarta.apache.org/struts/tags-nested |
http://struts.apache.org/tags-nested |
Change the DOCTYPE declaration at the beginning of your validation.xml file(s) to the following:
<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">Change the DOCTYPE declaration at the beginning of your struts-config.xml file(s) to the following:
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD ...