JSP Tutorials

Expression tag JSP
Previous Home Next
adplus-dvertising

JSP expression tag

In the JSP expression tag is generated to the output stream of the response and we can not write out.print() to write data.And now,we can mainly print the values of variable.

Syntax

 <%=  statement %>  

 <%=  statement %>  

Example

  <html>  
    <body>  
    <%= "hello user in jsp" %>  
    </body>  
    </html>  

    <html>  
    <body>  
     <%= "hello user in jsp" %>  
    </body>  
    </html>  
Note: we can not end your statement with semicolon in expression tag.
Previous Home Next