Listing 3: Java server page that uses the DatePulldown class in Listing 2

<%@page import="java.util.*"%>
<%
    DatePulldown Pulldown = new DatePulldown();
    Pulldown.setDate(new Date);
%>
<html>
<head>
<title>A first attempt</title>
</head>
<body bgcolor="#FFFFFF">
<FORM NAME="DatePulldown">
<%=Pulldown%>
<BR>
<INPUT TYPE="Submit">
</FORM>
</body>
</html>
— End of Listing —