lib下面加入了jstl.jar和standard.jar<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<body>
<c:out value="test"/>
</body>
</html>能够通过,但是在</body>上面加条<c:out value="${hello}" default="这个值没有" />就错误了org.apache.jasper.JasperException: /jsp/jstl/set.jsp(8,0) According to TLD or attribute directive in tag file, attribute value does not accept any expressions好像就是$符号的问题,怎么解决那,谢谢!

解决方案 »

  1.   

    attribute value does not accept any expressions 
    不能接任何表达式
      

  2.   

    lib中是否引入了jstl.jar和standard.jar 
      

  3.   

    有可能是版本的问题.改成这样的试下
    <%@ taglib uri=http://java.sun.com/jstl/core_rt prefix="c"%>
      

  4.   

    你将<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> 改为<%@ taglib uri="http://java.sun.com/jstl/core"  prefix="c"%> 
    这样改了会没有什么结果出来,如果要出来什么结果的话<%request.setAttribute("hello","hello");%>
      

  5.   

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

  6.   

    是用eclipse开发的吗,我都是<%@ taglib prefix="c" uri="/WEB-INF/c.tld"%>这样写