码迷,mamicode.com
首页 > Web开发 > 详细

Jsp页面显示时间:<fmt>标签问题

时间:2019-11-06 16:47:35      阅读:119      评论:0      收藏:0      [点我收藏+]

标签:stat   date   fill   strong   col   prevent   lte   validate   页面   

<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
查询时间报错:

org.apache.jasper.JasperException: /illness_case/cases_list.jsp (line: 44, column: 13) According to TLD or attribute directive in tag file, attribute value does not accept any expressions

Jsp页面时间标签
<td><fmt:formatDate value="${p.birthDay}" pattern="yyyy-MM-dd"/></td>
使用IDEa自动提示的标签为第一个,有可能导致时间显示报错,可以尝试使用第二个fmt标签

HTTP Status 500 – Internal Server Error




Type Exception Report


Message /manager/patient/PatientList.jsp (line: [70], column: [11]) According to TLD or attribute directive in tag file, attribute [value] does not accept any expressions


Description The server encountered an unexpected condition that prevented it from fulfilling the request.


Exception


org.apache.jasper.JasperException: /manager/patient/PatientList.jsp (line: [70], column: [11]) According to TLD or attribute directive in tag file, attribute [value] does not accept any expressions
	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41)
	org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:291)
	org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)
	org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1248)
	org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:886)
	org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1544)
	org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2389)
 

Jsp页面显示时间:<fmt>标签问题

标签:stat   date   fill   strong   col   prevent   lte   validate   页面   

原文地址:https://www.cnblogs.com/slAmor/p/11806010.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!