static Locale getLocale ( PageContext pageContext , String name ) { Locale loc = null ; Object obj = javax . servlet . jsp . jstl . core . Config . find ( pageContext , name ) ; if ( obj != null ) { if ( obj instanceof Locale ) { loc = ( Locale ) obj ; } else { loc = SetLocaleSupport . parseLocale ( ( String ) obj ) ; } } return loc ; }
Returns the locale specified by the named scoped attribute or context configuration parameter .