You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Lukas Bradley <lu...@somnia.com> on 2003/07/08 19:38:41 UTC

Please define ${ }

Many tags use ${ } to embed parsable or variable data within tags.  What is
the difference between $ { } and  <%= %> ?

Lukas




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


Re: Please define ${ }

Posted by Hans Bergsten <ha...@gefionsoftware.com>.
Lukas Bradley wrote:
> Many tags use ${ } to embed parsable or variable data within tags.  What is
> the difference between $ { } and  <%= %> ?

$(...} is for an Expression Language (EL) expression, a simple language
defined by the JSTL 1.0 specification and now being incorporated in the
JSP 2.0 specification. You can use EL expressions for tag attribute values
in the JSTL 1.0 EL tag libraries in a JSP 1.2 container, and for any
tag library as well as in template text in a JSP 2.0 container.

<%= ... %> is a Java expression, and can be used for any attribute value
as well as in template text with any version of the JSP spec.

Hans
-- 
Hans Bergsten                                <ha...@gefionsoftware.com>
Gefion Software                       <http://www.gefionsoftware.com/>
Author of O'Reilly's "JavaServer Pages", covering JSP 1.2 and JSTL 1.0
Details at                                    <http://TheJSPBook.com/>


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