Jsp tags outside WEB-INF/tags

痞子三分冷 提交于 2019-12-05 05:38:55

Apparently not: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPTags6.html even if using tld to say where the tag is, it can be either in WEB-INF/tags or META-INF/tags for tags packed in jars.

The standard way to deliver taglib is to pack all your tags in a jar and have the TLDs in the jar also in this directory,

  META-INF/tld/

When container starts up, it will scan all the jars for TLD so it knows where to find the tags. You simply use URL to refer to the tags. That's how JSTL works.

If the different sites are running as separate instances .. then you can just copy the relevant tags to /Web-Inf/tags during deployment

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!