public static Object getRequestParameter(final ServletRequest request, final String name) {
		String[] values = request.getParameterValues(name);
		if (values == null) {
			return null;
		}
		if (values.length == 1) {
			return values[0];
		}
		return values;
	}
public static Object getRequestParameter(final ServletRequest request, final String name) {
		String[] values = request.getParameterValues(name);
		if (values == null) {
			return null;
		}
		if (values.length == 1) {
			return values[0];
		}
		return values;
	}
public static Object getRequestParameter ( final ServletRequest request , final String name ) { String [ ] values = request . getParameterValues ( name ) ; if ( values == null ) { return null ; } if ( values . length == 1 ) { return values [ 0 ] ; } return values ; }
Returns HTTP request parameter as String or String[].
Returns HTTP request parameter as String or String [] .