nonTaglibAttrs,
nonTaglibXmlnsAttrs,
taglibAttrs,
- startMark,
- current);
+ startMark);
return;
}
nonTaglibAttrs,
nonTaglibXmlnsAttrs,
taglibAttrs,
- startMark,
- current);
+ startMark);
return;
}
nonTaglibAttrs,
nonTaglibXmlnsAttrs,
taglibAttrs,
- startMark,
- current);
+ startMark);
} else {
node =
parseCustomAction(
Attributes nonTaglibAttrs,
Attributes nonTaglibXmlnsAttrs,
Attributes taglibAttrs,
- Mark start,
- Node parent)
+ Mark start)
throws SAXException {
Node node = null;
*
* @return Fully-qualified class name of the tag handler corresponding to
* the given tag file path
- *
- * @deprecated Use {@link #getTagHandlerClassName(String, String,
- * ErrorDispatcher)
- * See https://issues.apache.org/bugzilla/show_bug.cgi?id=46471
- */
- public static String getTagHandlerClassName(String path, ErrorDispatcher err)
- throws JasperException {
- return getTagHandlerClassName(path, null, err);
- }
-
- /**
- * Gets the fully-qualified class name of the tag handler corresponding to
- * the given tag file path.
- *
- * @param path
- * Tag file path
- * @param err
- * Error dispatcher
- *
- * @return Fully-qualified class name of the tag handler corresponding to
- * the given tag file path
*/
public static String getTagHandlerClassName(String path, String urn,
ErrorDispatcher err) throws JasperException {
}
/**
- * Extracts tag file directive information from the tag file with the
- * given name.
- *
- * This is invoked by the compiler
- *
- * @param inFileName The name of the tag file to be parsed.
- * @deprecated Use {@link #parseTagFileDirectives(String, URL)}
- * See https://issues.apache.org/bugzilla/show_bug.cgi?id=46471
- */
- public Node.Nodes parseTagFileDirectives(String inFileName)
- throws FileNotFoundException, JasperException, IOException {
- return parseTagFileDirectives(
- inFileName, ctxt.getTagFileJarUrl(inFileName));
- }
-
- /**
* Extracts tag file directive information from the given tag file.
*
* This is invoked by the compiler
* 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);
- }
-
- /**
- * 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 tagFileJarUrl
* the url for the Jar containign the tag file
* @param tagLibInfo
err.jspError("jsp.error.file.not.found", location[0]);
}
- parseTLD(ctxt, location[0], in, null);
+ parseTLD(location[0], in, null);
// Add TLD to dependency list
PageInfo pageInfo = ctxt.createCompiler().getPageInfo();
if (pageInfo != null) {
jarFile = conn.getJarFile();
ZipEntry jarEntry = jarFile.getEntry(location[1]);
in = jarFile.getInputStream(jarEntry);
- parseTLD(ctxt, location[0], in, jarFileUrl);
+ parseTLD(location[0], in, jarFileUrl);
} catch (Exception ex) {
err.jspError("jsp.error.tld.unable_to_read", location[0],
location[1], ex.toString());
* in The TLD's input stream @param jarFileUrl The JAR file containing the
* TLD, or null if the tag library is not packaged in a JAR
*/
- private void parseTLD(JspCompilationContext ctxt, String uri,
- InputStream in, URL jarFileUrl) throws JasperException {
+ private void parseTLD(String uri, InputStream in, URL jarFileUrl)
+ throws JasperException {
Vector<TagInfo> tagVector = new Vector<TagInfo>();
Vector<TagFileInfo> tagFileVector = new Vector<TagFileInfo>();
Hashtable<String, FunctionInfo> functionTable = new Hashtable<String, FunctionInfo>();
else if ("tag".equals(tname))
tagVector.addElement(createTagInfo(element, jspversion));
else if ("tag-file".equals(tname)) {
- TagFileInfo tagFileInfo = createTagFileInfo(element, uri,
+ TagFileInfo tagFileInfo = createTagFileInfo(element,
jarFileUrl);
tagFileVector.addElement(tagFileInfo);
} else if ("function".equals(tname)) { // JSP2.0
*
* @return TagInfo correspoding to tag file directives
*/
- private TagFileInfo createTagFileInfo(TreeNode elem, String uri,
- URL jarFileUrl) throws JasperException {
+ private TagFileInfo createTagFileInfo(TreeNode elem, URL jarFileUrl)
+ throws JasperException {
String name = null;
String path = null;