public static Object attribute(final HttpServletRequest request, final String name) {
		Object value = request.getAttribute(name);
		if (value != null) {
			return value;
		}
		value = request.getSession().getAttribute(name);
		if (value != null) {
			return value;
		}
		return request.getServletContext().getAttribute(name);
	}
public static Object attribute(final HttpServletRequest request, final String name) {
		Object value = request.getAttribute(name);
		if (value != null) {
			return value;
		}
		value = request.getSession().getAttribute(name);
		if (value != null) {
			return value;
		}
		return request.getServletContext().getAttribute(name);
	}
public static Object attribute ( final HttpServletRequest request , final String name ) { Object value = request . getAttribute ( name ) ; if ( value != null ) { return value ; } value = request . getSession ( ) . getAttribute ( name ) ; if ( value != null ) { return value ; } return request . getServletContext ( ) . getAttribute ( name ) ; }
Returns non-<code>null</code> attribute value. Scopes are examined in the
following order: request, session, application.
Returns non - <code > null< / code > attribute value . Scopes are examined in the following order : request session application .