private void addTldLocationsFromWebXml() throws SAXException, IOException { LOG.debug("Looking for TLD locations in servletContext:/WEB-INF/web.xml"); WebXmlParser webXmlParser = new WebXmlParser(); InputStream in = servletContext.getResourceAsStream("/WEB-INF/web.xml"); if (in == null) { LOG.debug("No web.xml was found in servlet context"); return; } try { parseXml(in, servletContext.getResource("/WEB-INF/web.xml").toExternalForm(), webXmlParser); } finally { in.close(); } }
private void addLocationsFromWebXml() throws Exception { WebXmlParser webXmlParser = new WebXmlParser(); InputStream in = ctx.getResourceAsStream("/WEB-INF/web.xml"); if (in == null) { // No /WEB-INF/web.xml - do nothing return; } try { parseXml(in, ctx.getResource("/WEB-INF/web.xml").toExternalForm(), webXmlParser); } finally { in.close(); } }
private void addTldLocationsFromWebXml() throws SAXException, IOException { LOG.debug("Looking for TLD locations in servletContext:/WEB-INF/web.xml"); WebXmlParser webXmlParser = new WebXmlParser(); InputStream in = servletContext.getResourceAsStream("/WEB-INF/web.xml"); if (in == null) { LOG.debug("No web.xml was found in servlet context"); return; } try { parseXml(in, servletContext.getResource("/WEB-INF/web.xml").toExternalForm(), webXmlParser); } finally { in.close(); } }
private void addTldLocationsFromWebXml() throws SAXException, IOException { LOG.debug("Looking for TLD locations in servletContext:/WEB-INF/web.xml"); WebXmlParser webXmlParser = new WebXmlParser(); InputStream in = servletContext.getResourceAsStream("/WEB-INF/web.xml"); if (in == null) { LOG.debug("No web.xml was found in servlet context"); return; } try { parseXml(in, servletContext.getResource("/WEB-INF/web.xml").toExternalForm(), webXmlParser); } finally { in.close(); } }