code: public long getLong(String name)
      {
          long val = 0;
          try {
              val = Long.valueOf(request.getParameter(name));
          } catch (NumberFormatException e) {}
          
          return val;
      }
docs: get a long argument
  
  @param   name
  @return  long