我正在尝试做一个个人项目,将gae作为我的数据存储与springmvc集成。每当我尝试运行list.jsp页面(下面写的代码)时,我都会收到一个错误消息:org.apache.jasper.jasperexception:在第[29]行处理[/list.jsp]时发生异常:??<| 26:??<| 27:??<%<| 28:???list customers=(list)request.getattribute(“customerlist”)<|29:??(实体e:客户){<| 30:??%><| 31:??<| 32:???<%=e.getproperty(“名称”)%><|<| stacktrace:
代码如下:
带有crud功能的演示应用程序
功能:添加客户
<h2>All Customers</h2>
<table border="1">
<thead>
<tr>
<td>Name</td>
<td>Email</td>
<td>Created Date</td>
<td>Action</td>
</tr>
</thead>
<%
List<Entity> customers = (List<Entity>) request.getAttribute("customerList");
for (Entity e : customers) {
%>
<tr>
<td><%=e.getProperty("name")%></td>
<td><%=e.getProperty("email")%></td>
<td><%=e.getProperty("date")%></td>
<td><a href="update/<%=e.getProperty("name")%>">Update</a> | <a
href="delete/<%=e.getProperty("name")%>">Delete</a></td>
</tr>
<%
}
%>
</table>
暂无答案!
目前还没有任何答案,快来回答吧!