![]() |
The Java Developers Almanac 1.4Order this book from Amazon. |
e1063. Generating an XML Document from a JSP PageThis example demonstrates how to generate an XML document using a JSP page. Thepage directive is used to set the content type.
<%-- Set the content type --%> <%@ page contentType="text/xml" %> <%-- Emit some XML --%> <?xml version="1.0" encoding="UTF-8"?> <map> <entry key="key1" value="value1" /> <entry key="key2" /> </map>
e1062. Implementing a Redirect in a JSP Page
© 2002 Addison-Wesley. |