<%@ page import = "java.util.Date"%>
<html>
<head>
<title>The Quintessential JSP Page</title>
</head>
<body>
<pre>
This is just a template text, It is going to be write automatically.
stream.
<hr>
This is the jsp comment
<%-- This is a JSP comment --%>
<hr>
The business logic of the program will be written inside the scriptlet directive.
<% for(int i=0; i<10; i++)
out.println("The value of i is" + i);
%>
<hr>
The following is a directive that includes other files:
<%@ include file="Date.jsp" %>
<hr>
The Date is printed inside the JSP expression directive.
The current date is <%= new Date() %>
</pre>
</body>
|