public InputStream getResourceAsStream ( String pPath ) { //throws MalformedURLException { String path = pPath ; if ( pPath != null && ! pPath . startsWith ( "/" ) ) { path = getContextPath ( ) + pPath ; } return pageContext . getServletContext ( ) . getResourceAsStream ( path ) ; }
Gets the resource associated with the given relative path for the current JSP page request . The path may be absolute or relative to the current context root .