lend.page.jsp
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<div class="list_table_title">
<h3>借阅清单</h3></div>
<div class="list" id="list1">
<table id="myTable01" class="list_table" width="100%" border="0"
cellspacing="0" cellpadding="0">
<thead>
<tr>
<th width="8%">序号</th>
<th width="8%">图书条码号</th>
<th width="8%">题名</th>
<th width="8%">馆藏地点</th>
<th width="8%">文献流通类型</th>
<th width="8%">索书号</th>
<th width="8%">卷册信息</th>
<th width="8%">单价</th>
<th width="8%">借书日期</th>
<th width="8%">应还日期</th>
<th width="8%">续借次数</th>
<th width="8%">操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${page}" var="i" varStatus="status">
<tr>
<td>${status.count}</td>
<td>${i.barcode}</td>
<td>${i.title}</td>
<td>${i.collectionPlace.name}</td>
<td>${i.bookCirculateType.name}</td>
<td>${i.callno}</td>
<td>${i.volInfo}</td>
<td>${i.singlePrice}</td>
<td>${i.lendDate}</td>
<td><fmt:formatDate pattern='yyyy-MM-dd' value="${i.returnDate}"/></td>
<td><fmt:formatDate pattern='yyyy-MM-dd' value="${i.renewCount}"/></td>
<td><a href="${pageContext.request.contextPath}/lend/renewBook/${i.id}"
class="btn btn_edit">续借</a></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
lend.jsp
<form id="readerLendRecordForm" name="readerLendRecordForm" action="${pageContext.request.contextPath}/broken/brokenBook" method="post">
<input id="readerBarcode" name="readerBarcode" type="hidden" value="${readerLendRecordQueryForm.readerBarcode}"/>
<input id="collectionBarcode" name="collectionBarcode" type="hidden" value="${readerLendRecordQueryForm.collectionBarcode}"/>
<jsp:include page="/includes/operate.info.jsp" />
<div class="main_content">
<div class="edit">
<div class="edit_table_title">污损处理</div>
<table class="edit_table" width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="20%" rowspan="9" align="center" valign="middle">
<div class="photoPic">
<img src="../../images/noPhoto.gif" width="150" height="210" /> </div>
</td>
<th width="100">【读者证号】</th>
<td><input class="ft" name="readerBarcodeTmp" id="readerBarcodeTmp" style="width:225px;"/> </td>
<th width="100">【图书条码】</th>
<td class="ft"><input name="collectionBarcodeTmp" id="collectionBarcodeTmp" size="40" /></td>
</tr>
<tr>
<th align="right">【读者证号】</th>
<td> ${list.readerBarcode}</td>
<th align="right">【图书条码】</th>
<td> ${list1.collectionBarcode}</td>
</tr>
<tr>
<th align="right">【读者姓名】</th>
<td> ${list.readerName}</td>
<th align="right">【书 名】</th>
<td> ${list1.title}</td>
</tr>
<tr>
<th align="right">【证 状 态】</th>
<td> ${list.statusName}</td>
<th align="right">【ISBN】</th>
<td> ${list1.isbn}</td>
</tr>
<tr>
<th align="right">【班级组织】</th>
<td> ${list.statusName}</td>
<th align="right">【分类号】</th>
<td> ${list1.collection.callNo}</td>
</tr>
<tr>
<th align="right">【有 效 期】</th>
<td><fmt:formatDate pattern='yyyy-MM-dd' value="${list.startDate}"/>至<fmt:formatDate pattern='yyyy-MM-dd' value="${list.endDate}"/></td>
<th align="right">【出 版 社】</th>
<td> ${list1.publisher}</td>
</tr>
<tr>
<th align="right">【可 借 数】</th>
<td> ${list.readerType.lendNum}</td>
<th align="right">【责 任 者】</th>
<td> ${list1.author}</td>
</tr>
<tr>
<th align="right">【已 借 数】</th>
<td> ${list.totalLendNum}</td>
<th align="right">【附 件】</th>
<td> ${list1.attachment}</td>
</tr>
<tr>
<th align="right">【资金余额】</th>
<td> ${list.prepay}</td>
<th align="right">【价 格】</th>
<td> ${list1.price}</td>
</tr>
</table>
<jsp:include page="/includes/lend.page.jsp" />
</div>
</div>
</form>
页面显示
然后把代码如果拷贝回来就是正常效果
这种页面很多不想写那么多次。如果把page的值传进去
------解决思路----------------------
lend.page.jsp 中加上
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>