public static String getImageUrl ( String imgSrc , PageContext pageContext ) { BinaryResourcesHandler imgRsHandler = ( BinaryResourcesHandler ) pageContext . getServletContext ( ) . getAttribute ( JawrConstant . BINARY_CONTEXT_ATTRIBUTE ) ; if ( null == imgRsHandler ) throw new JawrLinkRenderingException ( "You are using a Jawr image tag while the Jawr Image servlet has not been initialized. Initialization of Jawr Image servlet either failed or never occurred." ) ; HttpServletResponse response = ( HttpServletResponse ) pageContext . getResponse ( ) ; HttpServletRequest request = ( HttpServletRequest ) pageContext . getRequest ( ) ; return getImageUrl ( imgSrc , imgRsHandler , request , response ) ; }
Sames as its counterpart only meant to be used as a JSP EL function .