Contains an expression that complies with the JSP syntax.
JSP syntax
<% = Expression %>
Example
<Font color = "blue"> <% = map. Size () %> </font>
<B> <% = numguess. gethint () %> </B>.
Description
The expression element represents an expression defined in the script language. It is automatically converted to a string after running, and then inserted into the expression for display at the location of the JSP file. Because the value of this expression has been converted into a string, you can insert this expression in a line of text (in the same form as ASP ).
When using expressions in JSP, remember the following:
You cannot use a semicolon (";") as the expression Terminator. But the same expression must end with a semicolon when used in scriptlet! View the scriptlet expression element that can include any valid expressions in Java language specification.
Sometimes expressions can also be used as attribute values of other JSP elements. An expression can become very complex and may consist of one or more expressions. The order of these expressions is from left to right.