2008/7/10 Mark Thomas <[EMAIL PROTECTED]>: > Jonathan Mast wrote: >> >> I'm writing a jsp to return out a simple xml document and it is being >> preceded by quite a few line breaks, causing my test parser to fail. >> >> The page simply calls out.println(xmlstring); >> >> Is there another way to control precisely the contents returned by a JSP? > > 1. Use a servlet > or > 2. Remove the line breaks from your JSP source >
3. Use XML syntax of JSP (aka JSP Documents, aka *.jspx) -- those do not generate extra whitespace. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]