Showing posts with label expressions in jsp. Show all posts
Showing posts with label expressions in jsp. Show all posts

Thursday, August 22, 2013

Basic lesson 3:-Adding dynamic content via expressions in jsp

As we saw in the previous section, any HTML file can be turned into a JSP file by changing its extension to .jsp.  Of course, what makes JSP useful is the ability to embed Java.  Put the following text in a file with .jsp extension (let us call it hello.jsp), place it in your JSP directory, and view it in a browser.
<HTML>
<BODY>
Hello!  The time is now <%= new java.util.Date() %>
</BODY>
</HTML>