https://bz.apache.org/bugzilla/show_bug.cgi?id=66008

            Bug ID: 66008
           Summary: Jasper Documentation is misleading (if not wrong)
                    about the trimSpaces option
           Product: Tomcat 10
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
          Assignee: dev@tomcat.apache.org
          Reporter: seeb...@orcasys.ch
  Target Milestone: ------

The documentation "Jasper 2 JSP Engine How To"
(https://tomcat.apache.org/tomcat-10.0-doc/jasper-howto.html) states under
Production Configuration:

trimSpaces - To remove useless bytes from the response, set this to true.

This is misleading and dangerous (if not just plain wrong):

trimSpace=true removes all spaces between jsp-tags and therefore may affect
output.

Example: The following line will print differently with trimSpaces=true than
with trimSpaces=false

<bean:write name="person" property="firstName"/> <bean:write name="person"
property="familyName"/>



The text in the documentation should be changed to: 
trimSpaces - To remove useless bytes from the response, set this to single.


The same applies to Tomcat 9

Previous Tomcat versions don't have the "single" option. For these tomcats,
that misleading line should be removed or at least a warning should be added,
that output may look different if trimSpaces is enabled.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to