Fix bug 43743. Correctly handle nest tag files packaged in a jar.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 7 Jan 2008 23:15:59 +0000 (23:15 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 7 Jan 2008 23:15:59 +0000 (23:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@609803 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/compiler/Parser.java

index f3e9a86..765a73a 100644 (file)
@@ -424,6 +424,13 @@ class Parser implements TagConstants {
                         if (ctxt.getOptions().isCaching()) {
                             ctxt.getOptions().getCache().put(uri, impl);
                         }
+                    } else {
+                        // Current compilation context needs location of cached
+                        // tag files
+                        for (TagFileInfo info : impl.getTagFiles()) {
+                            ctxt.setTagFileJarUrl(info.getPath(),
+                                    ctxt.getTagFileJarUrl());
+                        }
                     }
                     pageInfo.addTaglib(uri, impl);
                 }