Fetches the supplied parameter from the request. If the parameter does not exist,
<code>defval</code> is returned.
160411
public static String getParameter (HttpServletRequest req, String name, String defval)
    {
        String value = req.getParameter(name);
        return StringUtil.isBlank(value) ? defval : value.trim();
    }
1114476
public static String getProperty( String key, String def ) {
        return prp.getProperty( key, def );
    }
45990
function(val, defValue) {
		if (typeof defValue === "undefined") defValue = true;
		if (typeof val === "undefined") return defValue;
		if (val.toLowerCase() === "true" || val >= 1) return true;

		return false;
	}
880788
public static String getString(HttpServletRequest request, String parameterName, String defaultValue) {
		String value = request.getParameter(parameterName);
		if (value == null || value.length() == 0) {
			return defaultValue;
		}
		else {
			return value;
		}
		// return StringUtils.isEmpty(value) ? defaultValue : value;
	}
376668
@Override
	public String getProperty(final String value, final String def) {
		final String result = getProperty(value);
		return result == null ? def : result;
	}
470924
public static String getParameter (HttpServletRequest req, String name, boolean returnNull)
    {
        String value = req.getParameter(name);
        if (value == null) {
            return returnNull ? null : "";
        } else {
            return value.trim();
        }
    }
34973
public float getFloat(String name)
    {
        float fval = 0F;
        try {
            fval = Float.valueOf(request.getParameter(name));
        } catch (NumberFormatException e) {}
        
        return fval;
    }
242595
public long getRequstURIPath(String prefix, long defvalue) {
        String val = getRequstURIPath(prefix, null);
        try {
            return val == null ? defvalue : Long.parseLong(val);
        } catch (NumberFormatException e) {
            return defvalue;
        }
    }
67518
public int getPropAsInt(String key, int def) {
    return Integer.parseInt(getProp(key, String.valueOf(def)));
  }
791518
function _get(d, k, def) {
        if (typeof d === "undefined") return def;
        if (typeof d[k] === "undefined") return def;
        return d[k];
    }
1276446
public long getRequstURILastPath(long defvalue) {
        String val = getRequstURILastPath();
        try {
            return val.isEmpty() ? defvalue : Long.parseLong(val);
        } catch (NumberFormatException e) {
            return defvalue;
        }
    }
522784
public int getInt(String name)
    {
        int val = 0;
        try {
            val = Integer.valueOf(request.getParameter(name));
        } catch (NumberFormatException e) {}
        
        return val;
    }
73473
public String getStringProperty (final String name, final String def)
  {
    String val = m_aProps.getProperty (name, def);
    if (val == null)
      return def;
    val = val.trim ();
    return val.length () == 0 ? def : val;
  }
1280750
public static String getRequestParameterValue(final HttpServletRequest request, final String key) {
		String[] values = getRequestParameterValues(request, key);
		return values == null || values.length == 0 ? null : values[0];
	}
753066
public int getIntReqPar(final String name,
                          final int defaultVal) throws Throwable {
    String reqpar = getReqPar(name);

    if (reqpar == null) {
      return defaultVal;
    }

    try {
      return Integer.parseInt(reqpar);
    } catch (Throwable t) {
      return defaultVal; // XXX exception?
    }
  }
1143006
public float getRequstURILastPath(float defvalue) {
        String val = getRequstURILastPath();
        try {
            return val.isEmpty() ? defvalue : Float.parseFloat(val);
        } catch (NumberFormatException e) {
            return defvalue;
        }
    }
508924
public String query(String paramName, String defaultValue) {
        return this.request.query(paramName, defaultValue);
    }