/** * Checks to see if the given tag name maps to a tag file path, * and if so, parses the corresponding tag file. * * @return The TagFileInfo corresponding to the given tag name, or null if * the given tag name is not implemented as a tag file */ public TagFileInfo getTagFile(String shortName) { TagFileInfo tagFile = super.getTagFile(shortName); if (tagFile == null) { String path = tagFileMap.get(shortName); if (path == null) { return null; } TagInfo tagInfo = null; try { tagInfo = TagFileProcessor.parseTagFileDirectives(pc, shortName, path, this); } catch (JasperException je) { throw new RuntimeException(je.toString()); } tagFile = new TagFileInfo(shortName, path, tagInfo); vec.add(tagFile); this.tagFiles = vec.toArray(new TagFileInfo[vec.size()]); } return tagFile; }
/** * Checks to see if the given tag name maps to a tag file path, * and if so, parses the corresponding tag file. * * @return The TagFileInfo corresponding to the given tag name, or null if * the given tag name is not implemented as a tag file */ public TagFileInfo getTagFile(String shortName) { TagFileInfo tagFile = super.getTagFile(shortName); if (tagFile == null) { String path = tagFileMap.get(shortName); if (path == null) { return null; } TagInfo tagInfo = null; try { tagInfo = TagFileProcessor.parseTagFileDirectives(pc, shortName, path, this); } catch (JasperException je) { throw new RuntimeException(je.toString()); } tagFile = new TagFileInfo(shortName, path, tagInfo); vec.add(tagFile); this.tagFiles = vec.toArray(new TagFileInfo[vec.size()]); } return tagFile; }
tagInfo = TagFileProcessor.parseTagFileDirectives(pc, shortName, path,
/** * Checks to see if the given tag name maps to a tag file path, * and if so, parses the corresponding tag file. * * @return The TagFileInfo corresponding to the given tag name, or null if * the given tag name is not implemented as a tag file */ public TagFileInfo getTagFile(String shortName) { TagFileInfo tagFile = super.getTagFile(shortName); if (tagFile == null) { String path = tagFileMap.get(shortName); if (path == null) { return null; } TagInfo tagInfo = null; try { tagInfo = TagFileProcessor.parseTagFileDirectives(pc, shortName, path, this); } catch (JasperException je) { throw new RuntimeException(je.toString()); } tagFile = new TagFileInfo(shortName, path, tagInfo); vec.add(tagFile); this.tagFiles = vec.toArray(new TagFileInfo[vec.size()]); } return tagFile; }
/** * Checks to see if the given tag name maps to a tag file path, * and if so, parses the corresponding tag file. * * @return The TagFileInfo corresponding to the given tag name, or null if * the given tag name is not implemented as a tag file */ public TagFileInfo getTagFile(String shortName) { TagFileInfo tagFile = super.getTagFile(shortName); if (tagFile == null) { String path = tagFileMap.get(shortName); if (path == null) { return null; } TagInfo tagInfo = null; try { tagInfo = TagFileProcessor.parseTagFileDirectives(pc, shortName, path, this); } catch (JasperException je) { throw new RuntimeException(je.toString()); } tagFile = new TagFileInfo(shortName, path, tagInfo); vec.add(tagFile); this.tagFiles = vec.toArray(new TagFileInfo[vec.size()]); } return tagFile; }
/** * Checks to see if the given tag name maps to a tag file path, * and if so, parses the corresponding tag file. * * @return The TagFileInfo corresponding to the given tag name, or null if * the given tag name is not implemented as a tag file */ public TagFileInfo getTagFile(String shortName) { TagFileInfo tagFile = super.getTagFile(shortName); if (tagFile == null) { String path = tagFileMap.get(shortName); if (path == null) { return null; } TagInfo tagInfo = null; try { tagInfo = TagFileProcessor.parseTagFileDirectives(pc, shortName, path, this); } catch (JasperException je) { throw new RuntimeException(je.toString()); } tagFile = new TagFileInfo(shortName, path, tagInfo); vec.add(tagFile); this.tagFiles = vec.toArray(new TagFileInfo[vec.size()]); } return tagFile; }
/** * Checks to see if the given tag name maps to a tag file path, * and if so, parses the corresponding tag file. * * @return The TagFileInfo corresponding to the given tag name, or null if * the given tag name is not implemented as a tag file */ public TagFileInfo getTagFile(String shortName) { TagFileInfo tagFile = super.getTagFile(shortName); if (tagFile == null) { String path = (String) tagFileMap.get(shortName); if (path == null) { return null; } TagInfo tagInfo = null; try { tagInfo = TagFileProcessor.parseTagFileDirectives(pc, shortName, path, this); } catch (JasperException je) { throw new RuntimeException(je.toString()); } tagFile = new TagFileInfo(shortName, path, tagInfo); vec.addElement(tagFile); this.tagFiles = new TagFileInfo[vec.size()]; vec.copyInto(this.tagFiles); } return tagFile; }
/** * Checks to see if the given tag name maps to a tag file path, * and if so, parses the corresponding tag file. * * @return The TagFileInfo corresponding to the given tag name, or null if * the given tag name is not implemented as a tag file */ public TagFileInfo getTagFile(String shortName) { TagFileInfo tagFile = super.getTagFile(shortName); if (tagFile == null) { String path = (String) tagFileMap.get(shortName); if (path == null) { return null; } TagInfo tagInfo = null; try { tagInfo = TagFileProcessor.parseTagFileDirectives(pc, shortName, path, this); } catch (JasperException je) { throw new RuntimeException(je.toString()); } tagFile = new TagFileInfo(shortName, path, tagInfo); vec.addElement(tagFile); this.tagFiles = new TagFileInfo[vec.size()]; vec.copyInto(this.tagFiles); } return tagFile; }
tagInfo = TagFileProcessor.parseTagFileDirectives(pc, shortName, path,
/** * Parses the tag file, and collects information on the directives included * in it. The method is used to obtain the info on the tag file, when the * handler that it represents is referenced. The tag file is not compiled * here. * * @param pc * the current ParserController used in this compilation * @param name * the tag name as specified in the TLD * @param tagfile * the path for the tagfile * @param tagLibInfo * the TagLibraryInfo object associated with this TagInfo * @return a TagInfo object assembled from the directives in the tag file. * @deprecated Use {@link TagFileProcessor#parseTagFileDirectives( * ParserController, String, String, URL, TagLibraryInfo)} * See https://issues.apache.org/bugzilla/show_bug.cgi?id=46471 */ public static TagInfo parseTagFileDirectives(ParserController pc, String name, String path, TagLibraryInfo tagLibInfo) throws JasperException { return parseTagFileDirectives(pc, name, path, pc.getJspCompilationContext().getTagFileJarUrl(path), tagLibInfo); }
private TagFileInfo createTagFileInfo(TagFileXml tagFileXml, Jar jar) throws JasperException { String name = tagFileXml.getName(); String path = tagFileXml.getPath(); if (path == null) { // path is required err.jspError("jsp.error.tagfile.missingPath"); } else if (!path.startsWith("/META-INF/tags") && !path.startsWith("/WEB-INF/tags")) { err.jspError("jsp.error.tagfile.illegalPath", path); } TagInfo tagInfo = TagFileProcessor.parseTagFileDirectives(parserController, name, path, jar, this); return new TagFileInfo(name, path, tagInfo); }
private TagFileInfo createTagFileInfo(TagFileXml tagFileXml, Jar jar) throws JasperException { String name = tagFileXml.getName(); String path = tagFileXml.getPath(); if (path == null) { // path is required err.jspError("jsp.error.tagfile.missingPath"); } else if (!path.startsWith("/META-INF/tags") && !path.startsWith("/WEB-INF/tags")) { err.jspError("jsp.error.tagfile.illegalPath", path); } TagInfo tagInfo = TagFileProcessor.parseTagFileDirectives(parserController, name, path, jar, this); return new TagFileInfo(name, path, tagInfo); }
/** * Parses the tag file, and collects information on the directives included * in it. The method is used to obtain the info on the tag file, when the * handler that it represents is referenced. The tag file is not compiled * here. * * @param pc * the current ParserController used in this compilation * @param name * the tag name as specified in the TLD * @param tagfile * the path for the tagfile * @param tagLibInfo * the TagLibraryInfo object associated with this TagInfo * @return a TagInfo object assembled from the directives in the tag file. * @deprecated Use {@link TagFileProcessor#parseTagFileDirectives( * ParserController, String, String, URL, TagLibraryInfo)} * See https://issues.apache.org/bugzilla/show_bug.cgi?id=46471 */ public static TagInfo parseTagFileDirectives(ParserController pc, String name, String path, TagLibraryInfo tagLibInfo) throws JasperException { return parseTagFileDirectives(pc, name, path, pc.getJspCompilationContext().getTagFileJarUrl(path), tagLibInfo); }
protected TagFileInfo createTagFileInfo(org.apache.catalina.deploy.jsp.TagFileInfo tagFileInfo, URL jarFileUrl) throws JasperException { String name = tagFileInfo.getName(); String path = tagFileInfo.getPath(); if (path.startsWith("/META-INF/tags")) { // Tag file packaged in JAR // See https://issues.apache.org/bugzilla/show_bug.cgi?id=46471 // This needs to be removed once all the broken code that depends on // it has been removed ctxt.setTagFileJarUrl(path, jarFileUrl); } else if (!path.startsWith("/WEB-INF/tags")) { err.jspError("jsp.error.tagfile.illegalPath", path); } TagInfo tagInfo = TagFileProcessor.parseTagFileDirectives( parserController, name, path, jarFileUrl, this); return new TagFileInfo(name, path, tagInfo); }
tagInfo = TagFileProcessor.parseTagFileDirectives(pc, shortName, path,
tagInfo = TagFileProcessor.parseTagFileDirectives(pc, shortName, path,
tagInfo = TagFileProcessor.parseTagFileDirectives(pc, shortName, path,
= TagFileProcessor.parseTagFileDirectives(parserController, name, path, this); return new TagFileInfo(name, path, tagInfo);
protected TagFileInfo createTagFileInfo(org.apache.catalina.deploy.jsp.TagFileInfo tagFileInfo, URL jarFileUrl) throws JasperException { String name = tagFileInfo.getName(); String path = tagFileInfo.getPath(); if (path.startsWith("/META-INF/tags")) { // Tag file packaged in JAR // See https://issues.apache.org/bugzilla/show_bug.cgi?id=46471 // This needs to be removed once all the broken code that depends on // it has been removed ctxt.setTagFileJarUrl(path, jarFileUrl); } else if (!path.startsWith("/WEB-INF/tags")) { err.jspError(MESSAGES.invalidTagFileDirectory(path)); } TagInfo tagInfo = TagFileProcessor.parseTagFileDirectives( parserController, name, path, jarFileUrl, this); return new TagFileInfo(name, path, tagInfo); }
protected TagFileInfo createTagFileInfo(org.apache.jasper.deploy.TagFileInfo tagFileInfo, Jar jar) throws JasperException{ String name = tagFileInfo.getName(); String path = tagFileInfo.getPath(); if (path.startsWith("/META-INF/tags")) { // Tag file packaged in JAR // See https://issues.apache.org/bugzilla/show_bug.cgi?id=46471 // This needs to be removed once all the broken code that depends on // it has been removed ctxt.setTagFileJarUrl(path, jar.getJarFileURL()); } else if (!path.startsWith("/WEB-INF/tags")) { err.jspError(MESSAGES.invalidTagFileDirectory(path)); } TagInfo tagInfo = TagFileProcessor.parseTagFileDirectives( parserController, name, path, jar, this); return new TagFileInfo(name, path, tagInfo); }