private MessageResources lookupStrutsBundle ( String name ) { Object value = _servletContext . getAttribute ( name ) ; if ( value instanceof MessageResources ) return ( MessageResources ) value ; else { if ( value != null ) LOGGER . warn ( "Can not resolve module bundle with name \"" + name + "\". The object resolved from ServletContext is of type " + value . getClass ( ) . toString ( ) ) ; return null ; } }
Lookup a specific resource bundle for the current Struts module .