Name
Expression
Synopsis
An
expression
is used to add the result of executing a scripting expression to the
response. The content between the start and the end characters must
be a complete valid expression in the language defined by the
page
directive that results in a string or can be
converted to a string. All JSP implicit scripting variables are
visible in an expression element.
Syntax 1: In a regular JSP page
<%= expression
%>
Syntax 2: In a JSP Document (a JSP page written in XML syntax)
<jsp:expression>expression
</jsp:expression>
Attributes
None.
Example
<%= globalCounter++ %>
Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.