Skip to Content
Jakarta Struts Cookbook
book

Jakarta Struts Cookbook

by Bill Siggelkow
February 2005
Intermediate to advanced
528 pages
12h 53m
English
O'Reilly Media, Inc.
Content preview from Jakarta Struts Cookbook

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

  1. Download the Struts 1.2 binary distribution from http://struts.apache.org/acquiring.html.

  2. Copy the JAR files and Tag Library Descriptor (TLD) files from the Struts lib folder to your application's WEB-INF/lib folder.

  3. If you use absolute URIs for the taglib directives 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

  1. 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">
  2. 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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Jakarta Commons Cookbook

Jakarta Commons Cookbook

Timothy M. O'Brien
Beginning Spring Framework 2

Beginning Spring Framework 2

Bruce Snyder, Sing Li, Anne Horton, Thomas Van de Velde, Naveen Balani, Christian Dupuis

Publisher Resources

ISBN: 059600771XErrata Page