为什么单击“下一步”后不列出其他数据?
我正在学习jsp,但我被困在这一部分。为什么会这样?下一个数据在表中不可见。这种脱节的原因是什么?
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<c:set var="ordersAction" value="${pageContext.request.contextPath}/shop/customer/orders.html"/>
<c:set var="customerOrder" value="${pageContext.request.contextPath}/shop/customer/order.html"/>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.23/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.6.5/css/buttons.dataTables.min.css">
<div id="main-content" class="container clearfix row-fluid">
<div class="span12 col-md-12 common-row">
<div class="span8 col-md-8 no-padding">
<div class="checkout-box">
<span class="box-title">
<p class="p-title">
<s:message
code="menu.order-list" text="List of orders" />
<span class="p-title-text">
<c:if test="${not empty customerOrders.orders}">
<s:message code="label.entitylist.paging"
arguments="${(paginationData.offset)};${paginationData.countByPage};${paginationData.totalCount}"
htmlEscape="false"
argumentSeparator=";" text=""/>
</c:if>
</p>
</span>
<c:choose>
<c:when test="${not empty customerOrders.orders}">
<div id="shop">
<!-- HISTORY TABLE -->
<table class="table table-striped" id="example">
<!-- table head -->
<thead>
<tr>
<th><s:message code="label.entity.id" text="Id"/></th>
<th><s:message code="label.customer.order.date" text="Order date"/></th>
<th><s:message code="label.generic.amount" text="Amount"/></th>
<th><s:message code="label.entity.status" text="Status"/></th>
</tr>
</thead>
<!-- /HISTORY TABLE -->
<tbody>
<c:forEach items="${customerOrders.orders}" var="order" varStatus="orderStatus">
<tr><!-- item -->
<td><a href="${customerOrder}?orderId=${order.id}">${order.id}</a></td>
<td><fmt:formatDate type="both" value="${order.datePurchased}" pattern="yyyy-MM-dd" /></td>
<td><sm:monetary value="${order.total.value}" /> <small>(${fn:length(order.products)} <c:choose><c:when test="${fn:length(order.products)==1}">
<s:message code="label.generic.item" text="item"/></c:when><c:otherwise><s:message code="label.generic.items" text="items"/></c:otherwise>
</c:choose>)</small></td>
<td>${order.orderStatus.value}</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</c:when>
<c:otherwise>
</c:otherwise>
</c:choose>
</div>
</div>
<div class="span4 col-md-4 no-padding">
<jsp:include page="/pages/shop/common/customer/customerProfileMenu.jsp" />
<jsp:include page="/pages/shop/common/customer/customerOrdersMenu.jsp" />
</div>
</div>
<!-- close row-fluid-->
</div>
<!--close .container "main-content" -->
暂无答案!
目前还没有任何答案,快来回答吧!