tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24009] - Jasper option for "whitespace-optimized" HTML output
Date Thu, 30 Oct 2003 23:22:50 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24009>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24009

Jasper option for "whitespace-optimized" HTML output





------- Additional Comments From mariuss@lightspeed.ca  2003-10-30 23:22 -------
There should be at least one option to not generate empty lines for JSP directives.

Most of the JSP pages have lots of directives at the top of the page (includes,
taglibs, ...) and there is one empty line generated for every directive.

Aside from esthetic reasons (when you look at the source of the page first you
don't see anything because there are many empty lines at the beginnig) there is
a real issue with XHTML and Internet Explorer. While this is an Internet
Explorer bug (apparently they call it a feature), it sourfaces mainly with JSP
pages. IE is ignoring the Content-Type header and is guessing the page type by
scanning its start. It explicitly looks for the 'html' tag. If this tag is too
far down the road (because of too many blank lines) IE will give up and treat
the page as raw XML.

Having an option in the JSP compiler to remove the new lines for the lines
containing only a JSP directive will solve this issue with IE and also make the
source more readable.

I am not too sure if I should open another issue for this, I had the feeling
that this is related to white space optimization.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message