previous | top | next

JSP Syntax

JSP looks very much like HTML. In fact, any legal HTML document is also a legal JSP. JSPs allow you to include dynamic content using the following syntactic elements. The JSP Syntax chart ( provides a handy reference to JSP syntactic elements.

Here is a simple JSP page that displays the current date and time:

<head><title>Current Date and Time</title></head>
Hello, the current time is <%=new java.util.Date()%>

Copyright (c) Jason Voegele. All rights reserved.