<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %> <%@ page import="com.dao.BookDAO" %> <%@ page import="com.actionForm.BookForm" %> <%@ page import="java.util.*"%> <%@ page import="com.core.ChStr"%> <% Collection coll=(Collection)request.getAttribute("book"); ChStr chStr=new ChStr(); %> 图书馆管理系统 <%@include file="banner.jsp"%> <%@include file="navigation.jsp"%>
当前位置:图书管理 > 图书档案管理 >>>
<% if(coll==null || coll.isEmpty()){ %>
暂无图书信息!
添加图书信息
<% }else{ //通过迭代方式显示数据 Iterator it=coll.iterator(); int ID=0; String bookname=""; String barcode=""; String typename=""; String publishing=""; String bookcase=""; int storage=0; %>
  添加图书信息
<% while(it.hasNext()){ BookForm bookForm=(BookForm)it.next(); ID=bookForm.getId().intValue(); bookname=bookForm.getBookName(); barcode=chStr.nullToString(bookForm.getBarcode()," "); typename=bookForm.getTypeName(); publishing=bookForm.getPublishing(); bookcase=chStr.nullToString(bookForm.getBookcaseName()," "); %> <% } } %>
条形码 图书名称 图书类型 出版社 书架 修改 删除
 <%=barcode%> <%=bookname%>  <%=typename%>  <%=publishing%>  <%=bookcase%> 修改 删除
<%@ include file="copyright.jsp"%>