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 sabreware@tri-lakesonline.net.

Featured

Upcoming Events

AppTrends

Sign up for our newsletter.

I agree to this site's Privacy Policy.