public String getInitParameter(String pName, int pScope) {
        switch (pScope) {
            case PageContext.PAGE_SCOPE:
                return getServletConfig().getInitParameter(pName);
            case PageContext.APPLICATION_SCOPE:
                return getServletContext().getInitParameter(pName);
            default:
                throw new IllegalArgumentException("Illegal scope.");
        }
    }
public String getInitParameter ( String pName , int pScope ) { switch ( pScope ) { case PageContext . PAGE_SCOPE : return getServletConfig ( ) . getInitParameter ( pName ) ; case PageContext . APPLICATION_SCOPE : return getServletContext ( ) . getInitParameter ( pName ) ; default : throw new IllegalArgumentException ( "Illegal scope." ) ; } }
Returns the initialisation parameter from the scope specified with the
name specified.

@param pName The name of the initialisation parameter to return the
value for.
@param pScope The scope to search for the initialisation parameter
within.
@return The value of the parameter found.  If no parameter with the
name specified is found in the scope specified, then {@code null
} is returned.