各位大侠,自己实在解决不了所以来CSDN 求救了:
无论是使用自定义标签或标准标签库 都出现如下的错误:
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: null

解决方案 »

  1.   

    发现了,是我以前的tld文件放置错误,所以一直影响到后面的。
    但是又有个问题请教:<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
    <%@ page contentType="context/html;charset=gb2312" language="java" %>
    <%@ page import="java.util.*" %>
    <jsp:useBean id="now" class="java.util.Date"/>
    <fmt:setLocale value="zh-cn"/>
    <html>
    <head>
    <title> JSTL: example</title></head>
    <body bgcolor="#FFFFFF">
    <% 
    Collection customers= new ArrayList();
    customers.add(new String("guest1"));
     %>
    <h4>Customers  in the request:</h4>
    <c:set var="customer" scope="session" value="${requestScope.customers}"/>
    <c:forEach var="customer" items="${customers}">
     <c:out value="${customer}"/>
     <br>
    </c:forEach>
    <fmt:timeZone value="GMT">
    <fmt:formatDate value="${now}" type="both" dateStyle="full" timeStyle="full"/>
    </fmt:timeZone>
    </body>
    </html>结果出现的错误:jsp(16,0) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
      

  2.   

    <c:set var="customer" scope="session" value="${requestScope.customers}"/>
    这句错误 我没用过 所以也看不出错在哪里
      

  3.   

    <c:set var="customer" scope="session" value="${requestScope.customers}"/>${requestScope.customers}"/改成pageScope.customers 可能是这个问题你可以先试试
      

  4.   

    还是一样的错误啊
    这个用标准标签 要在web.xml里面定义 这些语句吗?
    taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"
      

  5.   

    帮帮忙啊 ,给别个JSTL 实例也好啊