<%@ page language= "java" import= "java.util.*" pageencoding= "Iso-8859-1"%>
<%
String path = Request.getcontextpath ();
String basepath = request.getscheme () + "://" +request.getservername () + ":" +request.getserverport () +path+ "/";
%>
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >
<base href= "<%=basePath%>" >
<title>my JSP ' index.jsp ' starting page</title>
<script language= "javascript" type= "Text/javascript"
Src= "Js/my97datepicker/wdatepicker.js" ></script>
<script type= "Text/javascript" >
<% Java.text.SimpleDateFormat formatter = new Java.text.SimpleDateFormat ("Yyyy-mm-dd");
Java.util.Date currenttime = new Java.util.Date ();//Get current system time
String str_date = Formatter.format (currenttime); Formatting a date time
%>
</script>
<div id= "Div1" ></div>
<script>
Wdatepicker ({econt: ' Div1 ', Onpicked:function (DP) {alert ()}})
</script>
<body>
</body>
The Java Web JSP page implements the display of the calendar (/wdatepicker control)