JSP Programs -- Page attributes


<!-- page attributes -->

<html>
<head><title>Hello World</title></head>
<body>
     <h2>
          <%@ page import="java.util.*" %>
          <%= (new Date()).toLocaleString()%>
          <br/>
          <%= request.getRemoteAddr() %>
          <br/>
          <%= session.getCreationTime() %>
          </h2>
</body>
</html>


No comments:

Post a Comment

Don't be a silent reader...
Leave your comments...

Anu