What are Expressions?

Solution:

A JSP expression is used to insert the value of a scripting language expression, converted into a string, into the data stream returned to the client, by the web server. Expressions are defined between <% = and %> tags.

JSP Expresssion

<html> 
   <head><title>My Blog</title></head> 
  
   <body>
      <p>Today's Date is: <%= (new java.util.Date()).toLocaleString()%></p>
   </body> 
</html>
0 answers