String limitName = makeLimitValueParamName(limit);
boolean isMultiSelect = (limit.getRenderer().equals("multipleChoiceCheckboxes.jsp")); String limitName = makeLimitValueParamName(limit, isMultiSelect);
  public static String render(Limit limit)  {    StringBuffer outStr = new StringBuffer();    String limitName = makeLimitValueParamName(limit);        ChoiceSet choiceSet;    try    {      choiceSet = limit.getChoiceSet();    }    catch (ObjectNotFoundException onfe)    {      throw new SignetRuntimeException(onfe);    }    Set choices = choiceSet.getChoices();    boolean isFirstChoice = true;    Iterator choicesIterator = choices.iterator();        if (limit.getRenderer().equals("singleChoicePullDown.jsp"))    {      outStr.append      	("<select class=\"" + limit.getDataType() + "\""      	 + "name \"" + limitName + "\">\n");            while (choicesIterator.hasNext())      {        Choice choice = (Choice)(choicesIterator.next());        outStr.append("<option" + (isFirstChoice ? " selected" : "") + ">");        outStr.append(choice.getDisplayValue());        outStr.append("</option>\n");                isFirstChoice = false;      }            outStr.append("</select>");    }    else if (limit.getRenderer().equals("multipleChoiceCheckboxes.jsp"))    {      int choiceNumber = 0;      while (choicesIterator.hasNext())      {        if (choiceNumber > 0)        {          outStr.append("<br />\n");        }                Choice choice = (Choice)(choicesIterator.next());        String choiceName = limitName + "_" + choiceNumber;        outStr.append          (" <input name=\"" + choiceName + "\""           + " type=\"checkbox\" value=\"" + choice.getValue() + "\" />\n");        outStr.append        	("<label for=\"" + choiceName + "\">");        outStr.append(choice.getDisplayValue());        outStr.append("</label>\n");        choiceNumber++;      }    }    else    {      outStr.append      	("ERROR: Unexpected value from limit.getRenderer(): "      	 + limit.getRenderer());    }        return outStr.toString();  }