/** * Gets the 'location' of the TLD associated with the given taglib 'uri'. * * Returns null if the uri is not associated with any tag library 'exposed' * in the web application. A tag library is 'exposed' either explicitly in * web.xml or implicitly via the uri tag in the TLD of a taglib deployed * in a jar file (WEB-INF/lib). * * @param uri The taglib uri * * @return An array of two Strings: The first element denotes the real * path to the TLD. If the path to the TLD points to a jar file, then the * second element denotes the name of the TLD entry in the jar file. * Returns null if the uri is not associated with any tag library 'exposed' * in the web application. */ public String[] getLocation(String uri) throws JasperException { if (mappings == null) { mappings = (HashMap<String, String[]>) ctxt.getAttribute( Constants.JSP_TLD_URI_TO_LOCATION_MAP); if (mappings == null) { scanListeners = false; scanTlds(); } } return (String[]) mappings.get(uri); }
scanTlds(); doneScanning = true;
public void onStartup(java.util.Set<java.lang.Class<?>> c, ServletContext ctxt) throws ServletException { this.ctxt = ctxt; Boolean b = (Boolean) ctxt.getAttribute("com.sun.faces.useMyFaces"); if (b != null) { useMyFaces = b.booleanValue(); } ServletRegistration reg = ctxt.getServletRegistration("jsp"); if (reg == null) { return; } String validating = reg.getInitParameter("validating"); isValidationEnabled = "true".equals(validating); scanListeners = true; scanTlds(); ctxt.setAttribute(Constants.JSP_TLD_URI_TO_LOCATION_MAP, mappings); }
scanTlds(); doneScanning = true;
scanTlds(); doneScanning = true;
scanTlds(); doneScanning = true;
public void onStartup(java.util.Set<java.lang.Class<?>> c, ServletContext ctxt) throws ServletException { this.ctxt = ctxt; Boolean b = (Boolean) ctxt.getAttribute("com.sun.faces.useMyFaces"); if (b != null) { useMyFaces = b.booleanValue(); } ServletRegistration reg = ctxt.getServletRegistration("jsp"); if (reg == null) { return; } String validating = reg.getInitParameter("validating"); isValidationEnabled = "true".equals(validating); scanListeners = true; scanTlds(); ctxt.setAttribute(Constants.JSP_TLD_URI_TO_LOCATION_MAP, mappings); }
public void onStartup(java.util.Set<java.lang.Class<?>> c, ServletContext ctxt) throws ServletException { this.ctxt = ctxt; Boolean b = (Boolean) ctxt.getAttribute("com.sun.faces.useMyFaces"); if (b != null) { useMyFaces = b.booleanValue(); } ServletRegistration reg = ctxt.getServletRegistration("jsp"); if (reg == null) { return; } String validating = reg.getInitParameter("validating"); isValidationEnabled = "true".equals(validating); scanListeners = true; scanTlds(); ctxt.setAttribute(Constants.JSP_TLD_URI_TO_LOCATION_MAP, mappings); }
scanTlds(); doneScanning = true;
public void onStartup(java.util.Set<java.lang.Class<?>> c, ServletContext ctxt) throws ServletException { this.ctxt = ctxt; Boolean b = (Boolean) ctxt.getAttribute("com.sun.faces.useMyFaces"); if (b != null) { useMyFaces = b.booleanValue(); } ServletRegistration reg = ctxt.getServletRegistration("jsp"); if (reg == null) { return; } String validating = reg.getInitParameter("validating"); isValidationEnabled = "true".equals(validating); scanListeners = true; scanTlds(); ctxt.setAttribute(Constants.JSP_TLD_URI_TO_LOCATION_MAP, mappings); }
public void onStartup(java.util.Set<java.lang.Class<?>> c, ServletContext ctxt) throws ServletException { this.ctxt = ctxt; Boolean b = (Boolean) ctxt.getAttribute("com.sun.faces.useMyFaces"); if (b != null) { useMyFaces = b.booleanValue(); } ServletRegistration reg = ctxt.getServletRegistration("jsp"); if (reg == null) { return; } String validating = reg.getInitParameter("validating"); isValidationEnabled = "true".equals(validating); scanListeners = true; scanTlds(); ctxt.setAttribute(Constants.JSP_TLD_URI_TO_LOCATION_MAP, mappings); }
public void onStartup(java.util.Set<java.lang.Class<?>> c, ServletContext ctxt) throws ServletException { this.ctxt = ctxt; Boolean b = (Boolean) ctxt.getAttribute("com.sun.faces.useMyFaces"); if (b != null) { useMyFaces = b.booleanValue(); } ServletRegistration reg = ctxt.getServletRegistration("jsp"); if (reg == null) { return; } String validating = reg.getInitParameter("validating"); isValidationEnabled = "true".equals(validating); scanListeners = true; scanTlds(); ctxt.setAttribute(Constants.JSP_TLD_URI_TO_LOCATION_MAP, mappings); }