Currently, any JARs in the classloader delegation chain of a webapp's
classloader are scanned for packaged TLDs. This is convenient, as it
allows a JAR-packaged taglib to be simply dropped in common/lib and
shared by all webapps, rather than requiring each webapp to bundle the
taglib in its own WEB-INF/lib.

However, scanning all available JARs for TLDs is not very efficient,
especially if the names of the JAR-packaged taglibs are known in
advance.

The proposal is to add a configurable String property ("tldJarNames")
on Context, which specifies the comma-separated list of JAR file names
(without any path info) that must be scanned for TLDs.

Catalina will continue to traverse the classloader delegation chain,
but only consider those JARs that match the names in the
comma-separated list.

If a JAR appears more than once in the classloader delegation chain,
we will pick its first occurrence.

If the "tldJarNames" property is not set, Catalina will continue to scan all JARs in the classloader delegation chain for TLDs.

Comments?

Jan






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to