emitHeader(out, refreshRate, useShortName);
emitHeader(out, refreshRate, useShortName, assetFilter);
        public void doGet(HttpServletRequest request, HttpServletResponse response) {                        String refresh = null;            int refreshRate = defaultRefreshRate;            String error = null;            boolean useShortName = true;            String ln = "SHORTNAME";            String assetFilter = "ALL";                        if (request != null) {                                ln = request.getParameter("NAMEFORMAT");                if (ln != null) {                     if (!ln.equals("SHORTNAME")) {                        useShortName = false;                    }                 } else {                    ln = "SHORTNAME";                }                                refresh = request.getParameter("REFRESH");                if (refresh != null) {                    try {                        int r = Integer.parseInt(refresh);                        if (r < 1000) {                            error = "Could not set refresh rate to "+refresh+". Number must be greater than 999.";                        } else {                            refreshRate = r;                        }                    } catch (NumberFormatException nfe) {                        error = "Could not set refresh rate to "+refresh+". NumberFormatException occurred.";                    }                }                                                String submit = request.getParameter("Submit");                String diagVal = request.getParameter("CHANGEDIAGNOSISVALUE");                if (submit != null && submit.equals("Set Value") && diagVal != null && diagVal.length() >0 ) { //the user wants to update the value of an action                    String uid  = request.getParameter("UID");                    setValue(uid, diagVal);                }                                String af = request.getParameter("ASSETFILTER");                if (af != null && af.length() >0 ) {                     assetFilter = af;                                    }                /*                                String lnf = request.getParameter("LNF");                if (lnf != null) {                    LONG_NUM_FORMAT = lnf;                    nf = new DecimalFormat(LONG_NUM_FORMAT);                }*/                            }                         response.setContentType("text/html");                        try {                PrintWriter out = response.getWriter();/*          if (assetName != null && assetType != null && state != null && (state.equalsIgnoreCase("TRUE") || state.equalsIgnoreCase("FALSE")) ) {              sendData(out);              boolean stateBool = Boolean.valueOf(state).booleanValue();              String i = emitDACs(assetName, assetType, stateBool, setMsgLog);              out.println("<center><h2>Emitted DefenseApplicabilityConditions for the specified asset.</h2></center><br>" );              out.println("<center><h2>"+i+"</h2></center><br>" );          } else { */                emitHeader(out, refreshRate, useShortName);                if (error != null) { // then emit the error                    out.print("<font color=\"#0C15FE\">"+ error + "</h2></font>");                }                                boolean e1 = emitData(out, useShortName, ln, refreshRate, assetFilter); //emit diagnoses                //boolean e2 = emitData(out, true); //emit wrappers                                if (!e1) {                    out.println("<p><p><p><h2><center>No Data is Available.</center></h2>");                }                emitFooter(out, refreshRate, useShortName, assetFilter);                //out.println("<center><h2>DefenseApplicabilityConditions not emitted - All three values required.</h2></center><br>" );                //if (eventService.isEventEnabled()) {                //   eventService.event("ERROR: Condition Name or Value not set properly: "+condName+"="+condValue);                //}                //          }                out.close();            } catch (java.io.IOException ie) { ie.printStackTrace(); }              catch (Exception e) { e.printStackTrace(); }        }