`
weigang.gao
  • 浏览: 482348 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论

According to TLD or attribute directive in tag file, attribute value does not a

    博客分类:
  • jstl
 
阅读更多

错误:

org.apache.jasper.JasperException: /success.jsp(23,9) According to TLD or attribute directive in tag file, attribute value does not accept any expressions

原因1:jsp版本问题,如果使用是JSP2.0版本就必须使用<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"

%>标签库,

解决:

 将jsp页面中

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

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

 

2.<%@ page isELIgnored="true"%><!-- 不准使用EL表达式了 -->设置不开启EL表达式,如果开启了也可能使用jstl标签

 

二:c.tld与 c_rt.tld标签库的区别?

 

分享到:
评论
Global site tag (gtag.js) - Google Analytics