DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27584>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27584

Tag attributes need escaping of EL quotes

           Summary: Tag attributes need escaping of EL quotes
           Product: Tomcat 5
           Version: 5.0.18
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I tried to use a map based EL expression

${folder.variables["copyright"]}

as Tag attribute like 

<jg:if exists="${folder.variables["copyright"]}">

But there was a JasperException "equal symbol expected"

When I included backslashes, it worked: 

<jg:if exists="${folder.variables[\"copyright\"]}">

I did find nothing in the JSP 2.0 spec about having to escape quotes in
Tag attributes, especially as in normal usage it is not necessary.

At least the error message is not very helpful.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to