aa.jsp~31~
上传用户:toby828
上传日期:2015-06-26
资源大小:8558k
文件大小:1k
- <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
- <%@ page import="com.dao.BookCaseDAO" %>
- <%@ page import="com.actionForm.BookCaseForm" %>
- <%@ page import="java.util.*"%>
- <%@ page import="com.core.ChStr" %>
- <html>
- <%
- Collection coll=(Collection)request.getAttribute("bookcase");
- %>
- <body>
- <%
- if(coll==null || coll.isEmpty()){
- out.println("暂无数据");
- }else{
- //通过迭代方式显示数据
- Iterator it=coll.iterator();
- while(it.hasNext()){
- ChStr chStr=new ChStr();
- BookCaseForm bookCaseForm=(BookCaseForm)it.next();
- out.println(bookCaseForm.getId());
- out.println(" | ");
- out.println(chStr.toChinese(bookCaseForm.getName()));
- out.println(" <a href='bookCaseQueryModify.do?ID="+bookCaseForm.getId()+"'>修改</a>");
- out.println(" <a href='bookcase_del.do?ID="+bookCaseForm.getId()+"'>删除</a>");
- out.println("<br>");
- }
- }
- %>
- <a href="bookcase_add.jsp">添加书架信息</a>
- </body>
- </html>