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

逃离我推掉我的手 2022-06-02 00:58 180阅读 0赞

两种解决方法

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”%>

推荐使用第二种方法

发表评论

表情:
评论列表 (有 0 条评论,180人围观)

还没有评论,来说两句吧...

相关阅读