<c:forEach items="${cs}" var="c">
<option value="${c.id}">${c.name}</option>
</c:forEach>
items="${cs}"中 不能有空格 例如 items="${cs} "就會有問題。
<c:forEach items="${cs}" var="c">
<option value="${c.id}">${c.name}</option>
</c:forEach>
items="${cs}"中 不能有空格 例如 items="${cs} "就會有問題。
在JDK的安裝目錄的lib目錄下有一個tools.jar文件,拷貝到Tomcat安裝目錄下的common\lib目錄下就行了.
在JSP頁面中先將中文編碼 import java.net.URLEncoder; <% String z = URLEncoder.encode("中文"); pageContext.
file.jsp<%@ page contentType="text/html;charset=UTF-8" language="java" %><h