下的页面数据传递不进来怎么处理

qq_24248853 2014-12-22 11:25:06
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的值传进去
...全文
182 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_24248853 2014-12-23
  • 打赏
  • 举报
回复
引用 5 楼 u011580323 的回复:
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"%>
3Q忘了写这个
qq_24248853 2014-12-22
  • 打赏
  • 举报
回复
引用 2 楼 rui888 的回复:
你在你 的 页面 打印看看 ${page} 传值过去没 ?
${page}值确定传过去了
qq_24248853 2014-12-22
  • 打赏
  • 举报
回复
引用 1 楼 rui888 的回复:
怎么 2个 点。 <jsp:include page="/includes/lend.page.jsp" /> 不知道 认不认 。你换个名字看看 lendpage.jsp
我又好几个页面都是这个格式 值都传过去了
tony4geek 2014-12-22
  • 打赏
  • 举报
回复
你在你 的 页面 打印看看 ${page} 传值过去没 ?
tony4geek 2014-12-22
  • 打赏
  • 举报
回复
怎么 2个 点。 <jsp:include page="/includes/lend.page.jsp" /> 不知道 认不认 。你换个名字看看 lendpage.jsp
  • 打赏
  • 举报
回复
你lend.page.jsp和lend.jsp是在同一级目录么? 如果是,就不用加includes
Rany.Z 2014-12-22
  • 打赏
  • 举报
回复
“”“然后把代码如果拷贝回来就是正常效果,这种页面很多不想写那么多次。如果把page的值传进去“”这两句话你是什么意思
shixitong 2014-12-22
  • 打赏
  • 举报
回复
这样看看呢
<%@ include file=”/includes/lend.page.jsp” %>
  • 打赏
  • 举报
回复
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"%>

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧