当前位置: 代码迷 >> Eclipse >> <c:forEach>取不到值,解决办法
  详细解决方案

<c:forEach>取不到值,解决办法

热度:56   发布时间:2016-04-23 01:23:29.0
<c:forEach>取不到值,急啊!
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
System.out.println("lllllll"+request.getAttribute("FileList") );
%>
    <c:forEach items="${FileList}"  var="fileName">
     <a href="DownLoadServlet?filename=${fileName}">${fileName}</a><br/>
    </c:forEach>
<c:forEach>提示:The tag handler class for "c:forEach" (org.apache.taglibs.standard.tag.rt.core.ForEachTag) was not found on the Java 
 Build Path
打印出:lllllll[file01]
jsp显示:${fileName}
导入包是jstl-1.1.2.jar    standard-1.1.2.jar
大哥们我没分,希望能帮我!
JSP Java Servlet c:forEach jstl

------解决方案--------------------
文件开头加上<%@ page language="java" contentType="text/html; charset=GB18030" pageEncoding="GB18030" isELIgnored="false"%>试试瞧
  相关解决方案