tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Kolinko" <knst.koli...@gmail.com>
Subject Re: Excess whitespace generated
Date Thu, 10 Jul 2008 22:14:50 GMT
2008/7/10 Mark Thomas <markt@apache.org>:
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message