attribute test does not accept any expressions

使用jstl标签,发现老是出现

attribute test does not accept any expressions的错误。看代码,没问题。后来查了一下,解决方案是:

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

改为:

 

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

试了一下,果然可以了。

原因,应该是jstl1.0和jstl2.0的区别吧!

自己没深究,有时间可以看看。这两个uri有何区别!

你可能感兴趣的:(jsp jstl)