This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
The form of a JSP can be pure XML because the JSP spec specifies a standard translation of JSP syntax to XML (good if your JSP container supports it), but the output of a JSP is completely separate. I.e., a JSP can ouput plain text, HTML, XHTML, an applet, more XML, etc. I think the user is asking about outputting XML from JSP, not authoring JSPs in XML. To get XML output, make sure you format any static template data in the JSP as well-formed XML. Then at the top of the JSP set the MIME type as XML, for example (using the default charset): <%@ page contentType="text/xml;charset=ISO-8859-1" %>
Scott Stirling<BR>Author of <A HREF="http://www.amazon.com/exec/obidos/ASIN/067231939X/ref=ase_electricporkchop/107-2476442-4883722" TARGET=_blank rel="nofollow">Java Server Pages Application Development</A>