On 10/03/2021 13:19, Rony G. Flatscher (Apache) wrote:
The STL (standard tag library) jstl-1.2_1.jar is able to have its tags 
processed without requiring
the user to place its tld-files into the webapps WEB-INF directory. Rather 
jstl-1.2_1.jar stores the
tld files in its META-INF directory and yet they seem to be found by the JSP 
processor (not sure
whether this is the correct term).

How can this be achieved for any taglib? What needs to be done to allow 
including the tld-files
within the taglib library such as to become able to remove the need to place 
the taglib library's
tld files into the webapps WEB-INF directory?

<quote spec="JSP" section="7.3.1">
When deployed inside a JAR file, the tag library descriptor files must be in the META-INF directory, or a subdirectory of it.
</quote>

You also need to make sure that Tomcat isn't configured to skip your JAR file when scanning for tag libraries (see CATALINA_BASE/conf/catalina.properties).

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to