Java Server Page

JSP Projects

JSP Project

adplus-dvertising
Write a program that display Current Date/Time
Previous Home Next
Save that program as a helloR4R.jsp .

Place it in the correct directory on your JSP web server/ Java Platform.

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.util.*" %>
<!program for display  the "current Date/Time on browser">
<!save as a helloR4R.jsp >
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>R4R Tech Soft</title>
    </head>
    <body>
        <!h1,h2.....is used for display heading >
    <h1>Hello R4R Tech Soft! Current Date/Time</h1>

    <!dynamic content is generated: Date/Time>
    <%= new java.util.Date()%>
</body>
</html>
Output:
Previous Home Next