From fa33c5f040d4163e204fb2bc44803effc75db0d4 Mon Sep 17 00:00:00 2001 From: markt Date: Mon, 7 Jan 2008 23:15:59 +0000 Subject: [PATCH] Fix bug 43743. Correctly handle nest tag files packaged in a jar. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@609803 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/jasper/compiler/Parser.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/java/org/apache/jasper/compiler/Parser.java b/java/org/apache/jasper/compiler/Parser.java index f3e9a867d..765a73a9a 100644 --- a/java/org/apache/jasper/compiler/Parser.java +++ b/java/org/apache/jasper/compiler/Parser.java @@ -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); } -- 2.11.0