您的位置:首页 > 其它

According to TLD or attribute directive in tag file, attribute [test] does not accept any expression

2017-12-28 15:34 453 查看
两种解决方法

1、将

<%@taglib prefix=”c” uri=”http://java.sun.com/jstl/core”%>

更改为

<%@taglib prefix=”c” uri=”http://java.sun.com/jsp/jstl/core”%>

会导致c:if 无法使用

2、使用JSTL的备用库



<%@taglib prefix=”c” uri=”http://java.sun.com/jstl/core”%>

更改为

<%@taglib prefix=”c” uri=”http://java.sun.com/jstl/core_rt”%>

推荐使用第二种方法
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐