两个小时没有解决的一个标签问题??
<%@ page contentType="text/html;charset=GB2312" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ page import="java.util.*" %>
<jsp:useBean id="now" class="java.util.Date"/>
<fmt:setLocale value="zh-cn"/>
<html>
<head>
<title>JSTL 简单示例</title>
</head>
<body>
<h3>JSTL 简单示例</h3>
<%
now=new Date();
out.println(now);
Collection customers=new ArrayList();
customers.add(new String("customer1"));
customers.add(new String("customer2"));
customers.add(new String("customer3"));
request.setAttribute("customers",customers);
%>
<h4>输出请求对象中所有客户</h4>
<!-- 使用jstl标签完成页面输出任务 -->
<br>
当前时间是
<br>
<!--jstl 标签格式化输出时间 -->
<fmt:timeZone value="GMT">
<fmt:formatDate value="${now}" type="both" dateStyle="full" timeStyle="full"/>
</fmt:timeZone>
</body>
</html>
出现错误的是这两行
<c:set var="customers"scope="session" value="${requestScope.customers}"/>
<fmt:formatDate value="${now}" type="both" dateStyle="full" timeStyle="full"/>