Bug 8577 - EL is unable to parse certain quote character sequences.
Summary: EL is unable to parse certain quote character sequences.
Status: RESOLVED INVALID
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: unspecified
Hardware: All All
: P3 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-27 01:25 UTC by Ryan Lubke
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Lubke 2002-04-27 01:25:11 UTC
Given:

<c:out value='${"\""}'/>

 -or-

<c:out value="${'\''}"/>

 -or-

<c:out value="${'\\'}"/>

Results in:

An error occurred while parsing custom action attribute "value" with value
"${"""}": Encountered """

An error occurred while parsing custom action attribute "value" with value
"${'''}": Encountered "'",

An error occurred while parsing custom action attribute "value" with value
"${'\'}" Encountered "'"
Comment 1 Nathan Abramson 2002-04-27 01:35:24 UTC
Remember that the normal JSP attribute escapes are applied before the
EL is evaluated.  So if you say value='${"\""}', the JSP engine converts
\" to " before it gets to the EL evaluator, so that it looks like '${"""}',
which is an illegal EL expression.