j***@sbcglobal.net
2007-01-11 21:23:10 UTC
One of the problems we've had lately with the Commerce JSPs is the huge amounts of whitespace they generate. If you do a 'view source' you will see large chunks of whitespace which is unnecessary and ugly.
I thought at one point I used an Apache mod to remove the whitespace, but I cannot for the life of me remember what mod it was. The compression module will compress the page but won't physically remove the whitespace before sending.
I tried adding a trim filter servlet I found on the web, but for some reason periodically the LikeMindFilter throws and exception when we use the trim filter (the trim filter is set to filter on the Store Servlet, not Like minds, so I assume its just a weird problem with the filter chains).
Does anyone have a good solution to removing whitespace that works well with Commerce (5.6.1)?
Removing the whitespace manually and removing carraige returns in the JSPs is not an option. We still need to be able to view the JSPs in our development environment with proper formatting.
I thought at one point I used an Apache mod to remove the whitespace, but I cannot for the life of me remember what mod it was. The compression module will compress the page but won't physically remove the whitespace before sending.
I tried adding a trim filter servlet I found on the web, but for some reason periodically the LikeMindFilter throws and exception when we use the trim filter (the trim filter is set to filter on the Store Servlet, not Like minds, so I assume its just a weird problem with the filter chains).
Does anyone have a good solution to removing whitespace that works well with Commerce (5.6.1)?
Removing the whitespace manually and removing carraige returns in the JSPs is not an option. We still need to be able to view the JSPs in our development environment with proper formatting.