tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Hudson <>
Subject Re: suppressing white space in jsps
Date Wed, 22 Aug 2001 14:24:05 GMT
The only solution I have heard of is to remove the newline from your JSP.
That's right -- one long line for the entire JSP.

On Wed, Aug 22, 2001 at 07:59:16AM -0500, VASQUEZ_JASON@LILLY.COM wrote:
> Is there any way to suppress the whitespace that is output by jsp's in 
> Tomcat/Catalina?  I have a simple jsp that generates a .csv, and sets the 
> HTTP headers so that it opens in Excel (intranet app).  Even with cramming 
> all the jsp intro stuff on one line, I still end up with one blank line as 
> the first line of output.  (actually, one newline code).  I know that 
> jasper must be converting every newline in the source .jsp to something 
> like println("\n") in the servlet --- that's what I'd like to turn off 
> (selectively)
> Is this possible?
> -jason


"A weird imagination is most useful to gain full advantage of all the features."

      matt hudson

View raw message