public void printCalendar(HttpServletRequest request, HttpServletResponse response) throws IOException, SQLException { CRSManager c = new CRSManager(); Date d1 = new Date(); Date d2; d2 = c.getMaxDate(dbcon,"1"); GregorianCalendar min = new GregorianCalendar(); GregorianCalendar max = new GregorianCalendar(); SimpleDateFormat sf = new SimpleDateFormat("MM/dd/yyyy"); SimpleDateFormat disp = new SimpleDateFormat("EEE MMM,d"); min.setTime(d1); max.setTime(d2); PrintWriter out = response.getWriter(); printTop(request,response); out.println("