if(value.equals("refresh")) action = "refresh"; if(value.equals("remove")){ action = "removeTicket"; dest = name; } if(name.equals("loadBalance")) { action = "loadBalance"; } if(name.equalsIgnoreCase("modCommAttr")) { action = "modCommAttr"; } if(name.equals("id")) { attrId = value; } if(name.equals("value")) { attrValue = value; }
if (value.equals("refresh")) action = "refresh"; if (value.equals("remove")) { action = "removeTicket"; dest = name;
          public void setParam(String name, String value) {            if(name.equalsIgnoreCase("format")) //display page in html or xml?              format = value;            if(name.equals("community")) //show attributes of seleced community            {              action = "community";            }            if(name.equals("showcommunity")) //detail of the community            {              action = "showCommunity";            }            if(name.equals("node")) //show this community using a remote node              nodeId = SimpleMessageAddress.getSimpleMessageAddress(value);            if(name.equals("agent")) {              action = "showAgent";              dest = value;            }            if(name.equals("control")) //show community control page            {              action = "control";            }            if(name.equals("operation")) { //do a move or remove?              action = value;              operation = value;            }            if(name.equals("mobileagent")) //which agent is operated?              mobileAgent = value;            if(name.equals("orignode")) //original node of this agent              origNode = value;            if(name.equals("destinationnode")) //move to where?              destNode = value;            //if(name.equals("forcerestart")) //              //forceRestart = value;            if(value.equals("refresh"))//refresh the page              action = "refresh";            if(value.equals("remove")){ //remove selected ticket              action = "removeTicket";              dest = name;            }            if(name.equals("loadBalance")) {              action = "loadBalance";            }            if(name.equalsIgnoreCase("modCommAttr")) {              action = "modCommAttr";            }            if(name.equals("id")) {              attrId = value;            }            if(name.equals("value")) {              attrValue = value;            }          }