You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Juergen Weber <we...@yahoo.com> on 2004/03/09 23:35:34 UTC

Escaping necessary in Tag attributes?

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 think this is a bug or a feature? 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.

Juergen



__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster
http://search.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org