JSP Expression Tag
- Expression tag evaluates the scripting language expression, converts the result into a string.
- This result is send back to the web user through response object.
- It writes the result into output stream of the response object.
Syntax:
<%= expression %> |
welcome.jsp:
<html> <head> <title>Expression tag example</title> </head> <body> Sum of 10 and 20 = <%= 10+20 %> </body> </html> |