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