错误的jsp 页面:
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>账户的列表页面</title>
</head>
<body>
<table border="1" width="300px">
<tr>
<th>编号</th>
<th>账户名称</th>
<th>账户金额</th>
</tr>
<c:forEach items="${accounts}" var="account">
<tr>
<td>${account.id}</td>
<td>${account.name }</td>
<td>${account.money }</td>
</tr>
</c:forEach>
</table>
</body>
</html>
提示错误信息:
http://java.sun.com/jsp/jstl/core] cannot be resolved in either web.xml or the jar files deployed with this application
大致意思是jstl 标签在部署的应用容器中不能被解析
解决办法:复制jstl.jar 拷贝至Tomcat的lib 文件夹中