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 Summary: Jasper option for "whitespace-optimized" HTML output Product: Tomcat 4 Version: 4.1.27 Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Jasper 2 AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Jasper generates servlet code, which doesn´t trim any whitespaces from the original JSP sourcefile. This causes the HTML output to have lots of empty lines and tabs and blanks. In Tomcat 4.1.27 I simply changed org.apache.jasper.compiler.Parser.parseTemplateText(Node parent) to trim whitespaces (see Attachment). good effects ------------ In a sample application this reduced the generated HTML code by approx. 30% without any negative side-effects. The jasper-generated Java source has no more 'out.write("\n\r");' so we save some complete method calls. bad effects ----------- Generated HTML is unreadable (which may be OK for productive installations) (any others???) I think of this enhancement as an optimization parameter, most useful for productive installations. So this should be made configurable via CLI and in $CATALINA_BASE/conf/web.xml. What do you think about this??? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]