When I use the xml syntax to write jsp documents and use the following directive in the root element: <jsp:directive.page contentType="text/xml" pageEncoding="UTF-8"/>
,I thought that the xml declaration: <?xml version="1.0" encoding="UTF-8"?> ,would be appended automagically to the output stream. However, this seems not to be the case. How can I make the page output that declaration as the first thing that the page sends? And how can I output the doctype declaration: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ,since the jsp document won't be well formed when it's added inside the jsp:root element? Regards Erik Bejnoff, Addsystems [EMAIL PROTECTED] =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com