Hola,
I'm not a Jasper expert, my guess is for two reasons:
- It's a slight performance hit

- There's a slight change of bugs or sub-optimal behavior.  For example
a subtle one was pointed out the other day: with trimSpaces on,
${something} followed by a space becomes just ${something} without a
space after it.  But for some HTML tags, e.g. <img>, and some browsers,
this causes different display behavior.


Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Brad Neuberg [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, September 08, 2004 1:45 PM
>To: Tomcat Users List
>Subject: RE: JSP Compiler produces huge HTML files with whitespace
>
>Yoav, thanks; this works.  One question; why isn't this true by
default?
>
>Brad
>
>At 09:56 AM 9/8/2004, you wrote:
>
>>Hi,
>>trimSpaces at
>>http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html.
>>
>>Yoav Shapira
>>Millennium Research Informatics
>>
>>
>> >-----Original Message-----
>> >From: Brad Neuberg [mailto:[EMAIL PROTECTED]
>> >Sent: Wednesday, September 08, 2004 12:55 PM
>> >To: [EMAIL PROTECTED]
>> >Subject: JSP Compiler produces huge HTML files with whitespace
>> >
>> >It seems like Tomcats JSP compiler produces _huge_ HTML pages,
>>retaining
>> >all the white space in the original JSP file.  When I view source I
see
>>a
>> >tremendous amount of white space with barely any tags.  The file
sizes
>>are
>> >bloated by about three times.  I have GZIP encoding on, but the
white
>>space
>> >makes it difficult for developers to step over the HTML produced to
>>debug
>> >things.  Does anyone know if there is a setting in Tomcat to reduce
the
>> >amount of whitespace in generated HTML files from JSP?
>> >
>> >Thanks,
>> >   Brad Neuberg
>> >   Senior Software Engineer, Rojo Networks
>> >   [EMAIL PROTECTED]
>> >
>> >
>>
>---------------------------------------------------------------------
>> >To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>This e-mail, including any attachments, is a confidential business
>>communication, and may contain information that is confidential,
>>proprietary and/or privileged.  This e-mail is intended only for the
>>individual(s) to whom it is addressed, and may not be saved, copied,
>>printed, disclosed or used by anyone else.  If you are not the(an)
>>intended recipient, please immediately delete this e-mail from your
>>computer system and notify the sender.  Thank you.
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to