【发布时间】:2014-04-09 05:55:03
【问题描述】:
我有一个使用spring标签的jsp文件。
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:if test="${!empty employeeList}">
<table class="data">
<tr>
<th>FirstName</th>
<th>LastName</th>
<th>Email</th>
<th>Telephone</th>
<th>Action</th>
</tr>
<c:forEach items="${employeeList}" var="emp">
<tr>
<td>${emp.firstname}</td>
<td>${emp.lastname}</td>
<td>${emp.email}</td>
<td>${emp.telephone}</td>
<td><a href="delete/${emp.id}">Delete</a>|
<a href="update/${emp.id}">Update</a>
</td>
</tr>
</c:forEach>
</table>
</c:if>
这是我在标题中提到的错误。我在 tomcat 7 上运行此代码,但如果我在 jBoss 7 上运行它,我不会收到此错误。它让我发疯。请帮忙。
【问题讨论】:
-
为什么会出现错误?你没有提到,我们如何帮助你。您是否在 POM.xml 文件中导入了 JSTL?
标签: spring tomcat jstl tomcat7