According to TLD or attribute directive in tag file, attribute var does not accept any expressions

来源:互联网 发布:网络通信协议图 编辑:程序博客网 时间:2024/06/11 03:18

今天在使用jstl数字格式化的时候出现了这样一个错误:

JSTL1.2 According to TLD or attribute directive in tag file, attribute var does not accept any expressions
在stackoverflow上发现了不用替换版本的解决方案:
只需要将页面中的

<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>

改为

  <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

就可以了。

StockOverFlow原文连接

我的个人博客地址

0 0
原创粉丝点击