System.out.println("*************** newvalue = " + newvalues);
        public void doGet(HttpServletRequest request, HttpServletResponse response) {                        String refresh = null;            String error = null;            boolean useShortName = false;            String actiondataFilter = "ACTIONS";            //Default refresh rate            int refreshRate = 50000;            String ln="SHORTNAME";                        String updateResult = null;            boolean wasUpdated = false;                        if (request != null) {                                ln = request.getParameter("NAMEFORMAT");                if (ln != null && ln.length()>0) {                     if (ln.equals("SHORTNAME")) {useShortName = true;}                 } else { //if not specified use default                    ln = "SHORTNAME";                }                actiondataFilter = request.getParameter("FILTER");                if (actiondataFilter == null || actiondataFilter.length()==0) {                    actiondataFilter = "ACTIONS"; //set up value to enable default data output.                }                                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[] newvalues = request.getParameterValues("NEWVALUE");                if (newvalues != null && newvalues.length >0 ) { //the user wants to update a value                                        System.out.println("*************** newvalue = " + newvalues);                                        String type = request.getParameter("TYPE");                    String uid  = request.getParameter("UID");                                        java.util.HashSet hs = new java.util.HashSet();                    for (int i=0; i<newvalues.length; i++) {                        hs.add(newvalues[i]);                    }                    updateResult = updateAction(type, uid, hs);                    wasUpdated = true;                }/*                                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, actiondataFilter, updateResult, ln, updateResult, wasUpdated );                if (error != null) { // then emit the error                    out.print("<font color=\"#0C15FE\">"+ error + "</h2></font>");                }                                boolean e1 = emitData(out, useShortName, actiondataFilter, refreshRate, ln); //emit actions                //boolean e2 = emitData(out, true); //emit wrappers                                if (!e1) {                    out.println("<p><p><p><h2><center>No Data is Available.</center></h2>");                }                emitFooter(out);                //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(); }                            }