You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Emmanuel Lopez <sa...@saclink.csus.edu> on 2003/03/13 20:50:19 UTC
JSP 2.0 EL HTML tags question
Hi I have a question about using the JSP 2.0 Expression Language
(EL) in HTML tags.
Should I be able to use the EL in tags such as <IMG> and <A>?
I would like to do this:
<img src="images/artist/${artist}_small.gif"/>
where JSP 2.0 would change it to:
<img src="images/artist/boris_small.gif"/>
but it instead shows the source EL expression.
I have set my environment to be JSP 2.0 compliant. I have tested
"images/artist/${artist}_small.gif" outside of the IMG tag and it
is translated correctly. ${artist} is a valid object and I can use it
in several places inside the JSP page and it works fine but no within
the IMG tag. I have a similar problem with the anchor tag.
I'm using tomcat 5.0.1a, read the docs and the JSP 2.0 spec and
haven't been able to figure out my problem.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org