String s = "";
    public static void sendASCII_old(HttpServletRequest request,                                     HttpServletResponse response,                                     ReqState rs) {        if (Debug.isSet("showResponse"))            System.out.println("Sending OPeNDAP ASCII Data For: " + rs.getDataset() +                    "    CE: '" + request.getQueryString() + "'");        String requestURL, ce;        DConnect url;        DataDDS dds;        if (request.getQueryString() == null) {            ce = "";        } else {            ce = "?" + request.getQueryString();        }        int suffixIndex = request.getRequestURL().toString().lastIndexOf(".");        requestURL = request.getRequestURL().substring(0, suffixIndex);        if (Debug.isSet("showResponse")) {            System.out.println("New Request URL Resource: '" + requestURL + "'");            System.out.println("New Request Constraint Expression: '" + ce + "'");        }        try {            if (Debug.isSet("asciiResponse")) System.out.println("Making connection to .dods service...");            url = new DConnect(requestURL, true);            if (Debug.isSet("asciiResponse")) System.out.println("Requesting data...");            dds = url.getData(ce, null, new asciiFactory());            if (Debug.isSet("asciiResponse")) System.out.println(" ASC DDS: ");            if (Debug.isSet("asciiResponse")) dds.print(System.out);            PrintWriter pw = new PrintWriter(response.getOutputStream());            PrintWriter pwDebug = new PrintWriter(System.out);            //pw.println("<pre>");            dds.print(pw);            pw.println("---------------------------------------------");            String s = "";            Enumeration e = dds.getVariables();            while (e.hasMoreElements()) {                BaseType bt = (BaseType) e.nextElement();                if (Debug.isSet("asciiResponse")) ((toASCII) bt).toASCII(pwDebug, true, null, true);                //bt.toASCII(pw,addName,getNAme(),true);                ((toASCII) bt).toASCII(pw, true, null, true);            }            //pw.println("</pre>");            pw.flush();            if (Debug.isSet("asciiResponse")) pwDebug.flush();        }        catch (FileNotFoundException fnfe) {            System.out.println("OUCH! FileNotFoundException: " + fnfe.getMessage());            fnfe.printStackTrace(System.out);        }        catch (MalformedURLException mue) {            System.out.println("OUCH! MalformedURLException: " + mue.getMessage());            mue.printStackTrace(System.out);        }        catch (IOException ioe) {            System.out.println("OUCH! IOException: " + ioe.getMessage());            ioe.printStackTrace(System.out);        }        catch (Throwable t) {            System.out.println("OUCH! Throwable: " + t.getMessage());            t.printStackTrace(System.out);        }        if (Debug.isSet("asciiResponse")) System.out.println(" dodsASCII done");    }