https://issues.apache.org/bugzilla/show_bug.cgi?id=56634

            Bug ID: 56634
           Summary: Using the JSP configuration element
                    <trim-directivewhitespaces> removes whitespace between
                    EL expressions
           Product: Tomcat 7
           Version: 7.0.54
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: Jasper
          Assignee: [email protected]
          Reporter: [email protected]

The web.xml contains
<jsp-config>
  <jsp-property-group>
    <url-pattern>*.jsp</url-pattern>
    <trim-directive-whitespaces>true</trim-directive-whitespaces>
  </jsp-property-group>
</jsp-config>

Given a person John Doe:
${person.first} ${person.last} -> "JohnDoe"
${person.first} x ${person.last} -> "John x Doe"

Removing the web.xml config produces the correct result
${person.first} ${person.last} -> "John Doe"

Per the JSP 2.2 spec, template text that does not contain only whitespaces
should be preserved as-is

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to