test.jsp.

Graphic Java
Create XML files using JSP
David Geary
Listing 1. test.jsp.


<html><head><title>Applying Xsl with Jsp</title></head>
<body>

<%@ taglib uri='WEB-INF/tlds/xsl.tld' prefix='xsl' %>
<%@ taglib uri='WEB-INF/tlds/inventory.tld' prefix='inventory' %>

<font size='5'>
Auction Inventory as of <%= new java.util.Date() %>
</font><p>

<inventory:update filename='inventory.xml'/>
<xsl:apply xml='inventory.xml' xsl='inventory.xsl'/></p>

</body></html>

About the Author

David Geary was the lead engineer for the Java Management API GUI toolkit, and is now an independent Java consultant. David is the author of Graphic Java—Mastering the JFC. He can be contacted at [email protected].

Upcoming Training Events

0 AM
Visual Studio Live! San Diego
September 8-12, 2025
Live! 360 Orlando
November 16-21, 2025
Cloud & Containers Live! Orlando
November 16-21, 2025
Data Platform Live! Orlando
November 16-21, 2025
Visual Studio Live! Orlando
November 16-21, 2025