according to tld or attribute directive in tag file attribute *** does not accept any expressions

http://stackoverflow.com/questions/13428788/according-to-tld-or-attribute-directive-in-tag-file-attribute-items-does-not-ac

 

Your JSTL taglib URI is wrong. The one which you've there is for legacy JSTL 1.0. Since JSTL 1.1 there's an additional /jsp path in the taglib URI, because expression language (those ${} things) has been moved from JSTL to JSP and hence taglibs of JSTL 1.0 and 1.1 are not interchangeable.

  如果原因是如上,则把下面的

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

修改为
 <%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>

posted on 2017-02-21 08:52  迷茫中寻找方向  阅读(203)  评论(0编辑  收藏  举报

导航