Jstl <fmt:formatDate> problem
来源:互联网 发布:ubuntu系统运行py文件 编辑:程序博客网 时间:2024/06/06 01:24
错误提示:
Unable to convert string "${item.startTime}" to class "java.util.Date" for attribute "value":
Property Editor not registered with the PropertyEditorManager
<c:forEach var="item" items="${list}"> <tr> <td><fmt:formatDate value='${item.startTime}' pattern="yyyy-MM-dd HH:mm:ss "></fmt:formatDate></td> <td><fmt:formatDate value='${item.endTime}' pattern="yyyy-MM-dd HH:mm:ss "></fmt:formatDate></td> </tr></c:forEach>
jsp页面写的是没问题的
web.xml 开头是这么写的:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" >
这样写就出问题了,应该改为
<?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <!-- Configuration here. --></web-app>
因为Tomcat的支持web.xml 的Servlet是 2.5版本。
0 0
- Jstl <fmt:formatDate> problem
- JSTL 《fmt:formatDate》
- jstl fmt:formatdate
- JSTL <fmt:formatDate/>
- JSTL <fmt:formatDate/>
- JSTL <fmt:formatDate/>
- jstl fmt:formatdate
- jstl <fmt:formatDate>标签
- jstl fmt:formatdate转载
- jstl fmt:formatdate
- jstl fmt:formatdate转载
- jstl的 <fmt:formatDate>
- 当JSTL的<fmt:formatDate/>标签不起作用
- JSTL标签之<fmt:formatDate/>使用介绍
- JSTL标签fmt:formatDate格式化日期出错
- jstl标签的fmt:formatDate格式化日期
- JSTL之格式化标签<fmt:formatDate>
- JSTL之数字、日期格式化<fmt:formatNumber/>、<fmt:formatDate/>
- 全国各省一本和二本录取率2014年,用事实说话
- UVA10534-Wavio Sequence(LIS)
- 重写NavigationControllerde的一个具体事例
- Swift开发-提示版本更新
- SQL逻辑查询语句执行顺序
- Jstl <fmt:formatDate> problem
- jquery 父、子页面之间页面元素的获取,方法的调用
- JavaScript-瀑布流布局
- java线程池的使用
- 图 —— 特殊状态下的讨论
- 为coreseek添加mmseg分词
- SQLite并发操作下的分析与处理,解决database is locked,以及多线程下执行事务等问题
- php获取数组的长度的方法
- AJAX学习笔记