wOut.writeVariableEntries(myDAS, myDDS);
wOut.writeVariableEntries(das, wwwDDS);
    public void sendDataRequestForm(HttpServletRequest request,                                    HttpServletResponse response,                                    String dataSet,                                    ServerDDS sdds,                                    DAS myDAS) // changed jc            throws DODSException, ParseException {        System.out.println("Sending OPeNDAP Data Request Form For: " + dataSet +                "    CE: '" + request.getQueryString() + "'");        String requestURL;/*        // Turn this on later if we discover we're supposed to accept        // constraint expressions as input to the Data Request Web Form    String ce;    if(request.getQueryString() == null){        ce = "";        }    else {        ce = "?" + request.getQueryString();        }*/        int suffixIndex = request.getRequestURL().toString().lastIndexOf(".");        requestURL = request.getRequestURL().substring(0, suffixIndex);        try {            //PrintWriter pw = new PrintWriter(response.getOutputStream());            PrintWriter pw;            if (false) {                pw = new PrintWriter(                        new FileOutputStream(                                new File("debug.html")                        )                );            } else                pw = new PrintWriter(response.getOutputStream());            wwwOutPut wOut = new wwwOutPut(pw);            // Get the DDS and the DAS (if one exists) for the dataSet.            DDS myDDS = getWebFormDDS(dataSet, sdds);            //DAS myDAS = dServ.getDAS(dataSet); // change jc            jscriptCore jsc = new jscriptCore();            pw.println(                    "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"\n"                            + "\"http://www.w3.org/TR/REC-html40/loose.dtd\">\n"                            + "<html><head><title>OPeNDAP Dataset Query Form</title>\n"                            + "<base href=\"" + helpLocation + "\">\n"                            + "<script type=\"text/javascript\">\n"                            + "<!--\n"            );            pw.flush();            pw.println(jsc.jScriptCode);            pw.flush();            pw.println(                    "DODS_URL = new dods_url(\"" + requestURL + "\");\n"                            + "// -->\n"                            + "</script>\n"                            + "</head>\n"                            + "<body>\n"                            + "<p><h2 align='center'>OPeNDAP Dataset Access Form</h2>\n"                            + "<hr>\n"                            + "<font size=-1>Tested on Netscape 4.61 and Internet Explorer 5.00.</font>\n"                            + "<hr>\n"                            + "<form action=\"\">\n"                            + "<table>\n"            );            pw.flush();            wOut.writeDisposition(requestURL);            pw.println("<tr><td><td><hr>\n");            wOut.writeGlobalAttributes(myDAS, myDDS);            pw.println("<tr><td><td><hr>\n");            wOut.writeVariableEntries(myDAS, myDDS);            pw.println("</table></form>\n");            pw.println("<hr>\n");            pw.println(                    "<address>Send questions or comments to: "                            + "<a href=\"mailto:support@unidata.ucar.edu\">"                            + "support@unidata.ucar.edu"                            + "</a></address>"                            + "</body></html>\n"            );            pw.println("<hr>");            pw.println("<h2>DDS:</h2>");            pw.println("<pre>");            myDDS.print(pw);            pw.println("</pre>");            pw.println("<hr>");            pw.flush();        }        catch (IOException ioe) {            System.out.println("OUCH! IOException: " + ioe.getMessage());            ioe.printStackTrace(System.out);        }    }