code: public static boolean isSet (HttpServletRequest req, String name, boolean defaultValue)
      {
          String value = getParameter(req, name, true);
          return (value == null) ? defaultValue : !StringUtil.isBlank(req.getParameter(name));
      }
docs: Returns true if the specified parameter is set to a non-blank value in the request, false if
  the value is blank, or <code>defaultValue</code> if the parameter is unspecified.
  
  @return true if the specified parameter is set to a non-blank value in the request, false if
  the value is blank, or <code>defaultValue</code> if the parameter is unspecified.