Have a JSP tag inside a Jar instead of WEB-INF/tags
Is it possible to have tag files (sample.tag) inside a jar archive instead of the WEB-INF of the .war archive?
I want to re-use a tag file in multiple web-apps without having to copy it into the WEB-INF al开发者_如何学编程ways.
Yes tag files can be packaged in a JAR file.
Summary: Tag files can be placed in one of two locations: in the /WEB-INF/tags/ directory or subdirectory of a web application or in a JAR file (see Packaged Tag Files) in the /WEB-INF/lib/ directory of a web application.
精彩评论