I've used a Filter to strip out redundant whitespace from text/html output. I wrapped the ServletResponse so that a custom ServletOutputStream filters out empty and recurring linefeeds. Works pretty well.

As for mod_gzip, I would be very surprised if it didn't respect the Accept-Encoding header the user-agent sends in the request. No header or gzip not specified shouldn't lead to a compressed response.

Jon

A wrote:
I know its not part of the spec - what is the
workaround / is there a workaround current developers
have used.

Thank you

--- Hiroshi Iwatani <[EMAIL PROTECTED]> wrote:


Read JSP 1.2 spec 2.3.7 'White Space'.

A wrote:

In the compiled JSP page - I dont want to remove

white

space from the code for the sake of readability


--- Schalk Neethling <[EMAIL PROTECTED]> wrote:



Are you talking about about white spaces in the

code

or the rendered page itself?

Parsons Technical Services wrote:



Then they are using a very odd or out dated

browser. Thus a very small


percentage of the users will have problems.

Doug Parsons
www.parsonstechnical.com


----- Original Message ----- From: "A" <[EMAIL PROTECTED]>
To: "Tomcat Users List"

<[EMAIL PROTECTED]>

Sent: Saturday, August 21, 2004 12:22 PM
Subject: Re: JSP WhiteSpace






Well what happens if your users cannot accept

zipped


content - your pretty much screwed then if you

choose


this method.  I woul dprefer a way of doing this
without compressing the output.

Any ideas?


--- Tim Funk <[EMAIL PROTECTED]> wrote:





Use mod_gzip. (If using apache, or tomcat 5

also

supports compressing on the
HTTP connector) The whitespace becomes a

non-issue


and your *really* save
bandwidth.

-Tim

Jack Kada wrote:





Developers,

I have completed a JSP project but when i view

the


source of the HTML pages there are loads of



whitespace




in between tables rows.

I am using Tomcat 5 and in the mailing list

read




that




there is a parameter called trimSpaces(). I

tried


this but it had no effect on the webpage.

If i could remove whitespace without touching

JSP





code




i would save a lot of bandwidth.







---------------------------------------------------------------------





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





_______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo!

Enter

now.


http://promotions.yahoo.com/goldrush


---------------------------------------------------------------------

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]



--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is

considered

to be sensitive or confidential and may not be
forwarded or disclosed to any other party without
the permission of the sender. If you received this
message in error, please notify me immediately so
that I can correct and delete the original email.
Thank you.


=== message truncated ===

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com


---------------------------------------------------------------------
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]



Reply via email to