各位大侠,自己实在解决不了所以来CSDN 求救了:
无论是使用自定义标签或标准标签库 都出现如下的错误:
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: null
无论是使用自定义标签或标准标签库 都出现如下的错误:
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: null
但是又有个问题请教:<%@ 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
这句错误 我没用过 所以也看不出错在哪里
这个用标准标签 要在web.xml里面定义 这些语句吗?
taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"