On a JSP 1.2 or later container, tag library declarations are
automatically recognized by the container if they are present in a JAR file that is loaded with the application. Thus, on such a container, you do not *have* to use <taglib> directives in web.xml at all.
The key to making this work is that the URI attribute on your <%@ taglib %> directives must match the <uri> element embedded within the TLD itself. The following lines illustrate the standard tag library URIs for OSCache something like:
<%@ taglib prefix="bean" uri="
http://www.opensymphony.com/oscache/ %>
and in the TagLib header section prior to actual tag descriptors (this is the part you guys need to add):
<uri>
http://www.opensymphony.com/oscache/</uri>
This makes upgrading very easy as you do not need to worry about where the taglib is copied to - it is in the JAR.