推荐方法1

1、把uri写在tld文件中,tld放在WEB-INF文件夹下,例如:

<short-name>就对应了你在jsp中引用的时候<%@ taglib prefix=""%>

<uri>就对应了你在jsp中引用的时候<%@ taglib uri=""%>

<taglib ...>

  <description>Tag extensions, my customized tag library.</description>
  <display-name>XXX ext tags</display-name>
  <tlib-version>1.0</tlib-version>
  <short-name>ext</short-name>
  <uri>http://tags.xxx.com/ext</uri>

</taglib>

2、tld文件中不写uri,在web.xml中写,例如:

<jsp-config>

  <taglib>
    <taglib-uri>http://tags.xxx.com/ext</taglib-uri>
    <taglib-location>/WEB-INF/xxx.tld</taglib-location>
  </taglib>
</jsp-config>

最新文章

  1. javascript之聊天室(单机)来自于冷的锋刃
  2. 安装tomcat
  3. Java for LeetCode 058 Length of Last Word
  4. django-crontab定时任务
  5. go语言示例-Timer计时器的用法
  6. 常见NoSQL的特点分析与比较
  7. 【LeetCode】102 - Binary Tree Level Order Traversal
  8. SQL Server 格式化时间format
  9. Tomcat安全
  10. 安装Cocoa 新的依赖管理工具Carthage
  11. BZOJ_1015_星球大战_[JSOI2008]_(并查集)
  12. Wpf ListBox数据绑定实例1--绑定字典集合
  13. NOPI导出Excel
  14. float存储方式编程验证
  15. 使用WPF创建无边框窗体
  16. java-5
  17. TwenLite源码阅读
  18. Spring Boot 添加jersey-mvc-freemarker依赖后内置tomcat启动不了解决方案
  19. Good Bye 2018
  20. JPA核心类与使用

热门文章

  1. prometheus,alertmanager 报警配置详解
  2. tez是什么?
  3. Qunit的使用
  4. MVP+Dagger2+Rxjava+Retrofit+GreenDao 开发的小应用,包括新闻、图片、视频3个大模块,代码封装良好
  5. urllib库在python2和python3环境下的使用区别
  6. jQuery li click失效问题
  7. App服务端架构变迁
  8. 史上最牛逼的纯CSS实现tab选项卡,闪瞎你的狗眼
  9. ES6 对象转Map
  10. mac 查看目前哪些进程占用哪些端口