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

--- Comment #7 from Mark Thomas <ma...@apache.org> ---
trimDirective-Whitespaces applies to template text. I believe that is
irrespective of whether the template text is copied to the response or not.

Checking the EBNF it takes a while but if you work your way through you'll find
that the "${person.first} ${person.last}" in <c:param
name="daddr">${person.first} ${person.last}</c:param> is an ELExpression
followed by TemplateText followed by another ELEXpression. Therefore the empty
template text is correctly trimmed if trimDirective-Whitespaces is enabled.

I also found this in JSP.1.3.10:
<quote>
This section presents a simple EBNF grammar for the JSP syntax. The grammar
is intended to provide a concise syntax overview and to resolve any syntax
ambiguities present in this specification. Other sections may apply further
restrictions to this syntax, for example to restrict what represents a valid
attribute value for a page directive. In all other cases the grammar takes
precedence in resolving syntax questions.
</quote>

Given that EL has a separate and distinct production from template text I am
satisfies that the current behaviour is correct.

-- 
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