[Top] [Prev] [Next] [Bottom]


Contains an expression valid in the page scripting language.

JSP Syntax

<%= expression %>


The map file has <font color="blue"><%= map.getCount() %></font> 
Good guess, but nope. Try <b><%= numguess.getHint() %></b>.


An expression tag contains a scripting language expression that is evaluated, converted to a String, and inserted where the expression appears in the JSP file. Because the value of an expression is converted to a String, you can use an expression within text in a JSP file.

When you use the Java language for scripting, remember these points:

You can sometimes use expressions as attribute values in JSP tags (see the JavaServer PagesTM Syntax Card). If an expression has more than one part, the parts are evaluated in left-to-right order as they appear in the tag.

See Also

[Top] [Prev] [Next] [Bottom]

Copyright © 1999, Sun Microsystems, Inc. All rights reserved.