14.9. Sample Bean Application: Writing Dynamic XML

This example application uses what we know about beans to query a database and write out its result set as an XML file. You can then transform the resulting XML file for presentation to a WAP client or an HTTP client.

To run this application, you need to download the Xalan XML parser from http://xml.apache.org. Once you've got it, install it in Tomcat's WEB-INF/lib directory, and restart Tomcat to make it available to the application.

14.9.1. writeNews.jsp

<%--File: writeNews.jsp 
    Purpose: call the writeNewsXMLBean, which does a query to get News events and writes
 out the result as an XML file. ...

Get Java™ for ColdFusion® Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.