WEB-INF /标签外的Jsp标签 [英] Jsp tags outside WEB-INF/tags

查看:126
本文介绍了WEB-INF /标签外的Jsp标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法从/ WEB-INF / tags文件夹中保存标记文件?也许通过某种方式使用tld并用uri而不是tagdir调用它们?

Is there any way to hold tag files out of /WEB-INF/tags folder? Maybe by using tld somehow and calling them with uri instead of tagdir?

这个请求的原因是我们试图从一个代码库运行多个站点,我们希望有它像WEB-INF / site1 / templates,tags,...所以如果这是错误的想法开始,请随意说。

Reason for this request is that we are trying to run several sites from one codebase and we would like to have it like WEB-INF/site1/templates, tags, ... so if this is wrong idea to begin with, feel free to say so.

推荐答案

显然不是: http:// java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPTags6.html 即使使用tld来说明标签的位置,它也可以是WEB-INF / tags或META-INF / tags用于装在罐子里的标签。

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.

这篇关于WEB-INF /标签外的Jsp标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆