<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %> <%@ page import="com.dao.BorrowDAO" %> <%@ page import="com.actionForm.BorrowForm" %> <%@ page import="java.util.*"%> <% Collection coll=(Collection)request.getAttribute("bookBorrowSort"); %> 图书馆管理系统 <%@include file="banner.jsp"%> <%@include file="navigation.jsp"%>
当前位置:图书借阅排行榜 >>>
<% if(coll==null || coll.isEmpty()){ %>
暂无图书借阅信息!
<% }else{ //通过迭代方式显示数据 Iterator it=coll.iterator(); int degree=0; String bookname=""; String typename=""; String barcode_book=""; String bookcase=""; String pub=""; String author=""; String translator=""; Float price=new Float(0); %> <% while(it.hasNext()){ BorrowForm borrowForm=(BorrowForm)it.next(); bookname=borrowForm.getBookName(); barcode_book=borrowForm.getBookBarcode(); typename=borrowForm.getBookType(); degree=borrowForm.getDegree(); bookcase=borrowForm.getBookcaseName(); pub=borrowForm.getPubName(); author=borrowForm.getAuthor(); price=borrowForm.getPrice(); %> <% } } %>
借阅次数 图书条形码 图书名称 图书类型 书架 出版社 作者 定价(元)
 <%=degree%>  <%=barcode_book%> <%=bookname%> <%=typename%>  <%=bookcase%>  <%=pub%> <%=author%> <%=price%>
<%@ include file="copyright.jsp"%>