O'Reilly logo

Sams Teach Yourself J2EE™ in 21 Days by Peter Roxburgh, Andy Longshaw, Debbie Law, Dan Haywood, Martin Bond

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercises

On Day 14, “JSP Tag Libraries,” you developed a custom tag library for use with your Web application. Today, you will write an XSLT stylesheet that will transform a Tag Library Descriptor (TLD) document into an HTML page for easy viewing.

Listing 17.19 shows the agency.tld file from Day 14 that you will transform into HTML for display by a Web browser.

Listing 17.19. Full Text of agency.tld
 1: <?xml version="1.0" encoding="ISO-8859-1" ?> 2: <!--DOCTYPE taglib PUBLIC 3: "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" 4: "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"--> 5: <taglib> 6: <tlib-version>1.0</tlib-version> 7: <jsp-version>1.2</jsp-version> 8: <short-name>agency</short-name> 9: <tag> 10: <name>getJob</name> 11: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required