datetag.tld文件:
<?xml version="1.0" encoding="iso-8859-1" ?> <!doctype taglib public "-//sun microsystems, inc.//dtd jsp tag library 1.2//en" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> <taglib> <tlib-version>1.0</tlib-version> <jsp-version>1.2</jsp-version> <short-name>date</short-name> <uri>http://com.demo.util.datejstl/tags</uri> <tag> <name>date</name> <tag-class>com.demo.util.jstl.jstlutil</tag-class> <attribute> <name>value</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>parttern</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> </taglib>
在jsp页面中引用:
<%@ taglib uri="http://com.demo.util.datejstl/tags" prefix="date"%>
在jsp页面中用法:
<date:date value="${time}" parttern="yyyy-mm-dd hh:mm:ss"></date:date></div>
如对本文有疑问, 点击进行留言回复!!
springmvc之ResponseBody响应json数据遇到的错误及解决
uni-app 后台升级 静默升级 uniapp 后台更新 静默更新 在线升级
SpringBoot多Module启动报错Could not transfer metadata
Hibernate项目报错:Cannot call sendError() after the response has been committed
网友评论