code: public static String getParameter(final ServletRequest pReq, final String pName, final String pDefault) {
          String str = pReq.getParameter(pName);
  
          return str != null ? str : pDefault;
      }
docs: Gets the value of the given parameter from the request, or if the
  parameter is not set, the default value.
  
  @param pReq     the servlet request
  @param pName    the parameter name
  @param pDefault the default value
  @return the value of the parameter, or the default value, if the
  parameter is not set.