tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rashmi Rubdi" <>
Subject Re: Tomcat 6 trimDirectiveWhitespaces
Date Sat, 12 May 2007 03:04:06 GMT
On 5/11/07, Milanez, Marcus <> wrote:
> Hi,
> Do I need something else besides declaring <%@ page
> trimDirectiveWhitespaces="false" %> to have my page's white spaces
> trimmed? This directive doesn't seem to work at all...

You are right it doesn't seem to work on Tomcat 6.0.10, well I think
you don't need anything else , just setting
trimDirectiveWhitespaces="true" is supposed to work but it didn't

Well the trimDirectiveWhitespaces doesn't remove all white spaces in a
HTML page, it is only supposed to remove the blank lines left behind
by JSP directives (as described here ) when
the HTML is rendered.

If you want to trim all white spaces one option is Ant RegEx (see

> Thanks in advance,
> Marcus


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message