documentlist.jsp
来自「J2EE电子商务系统开发从入门到精通---基于Struts和Hibernate技」· JSP 代码 · 共 62 行
JSP
62 行
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="..\taglibs.jsp" %>
<%@page import = "java.util.*"%>
<%@page import = "model.library.hibernate.*"%>
<%
request.setCharacterEncoding("gb2312");
List docList = (List)session.getAttribute("documentlist");
%>
<html>
<head>
<title>LIBRARY ONLINE</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="sub">
<%
for (int i=0; i<docList.size(); i++) {
Document doc = (Document)docList.get(i);
%>
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr bgcolor="#33CCFF">
<td height="33" colspan="2"><div align="left"><%=doc.getName()%></div></td>
</tr>
<tr>
<td width="14%" valign="top" bgcolor="#FFFFFF"><table width="51%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" align="right"><div align="left"><a href="documentdisplay.do?id=<%=doc.getId()%>" target="_blank"><img src="library/image/book.jpg" width="100" height="100" border="0"></a></div></td>
</tr>
</table></td>
<td width="86%" bgcolor="#FFFFFF"><p><a href="documentdisplay.do?id=<%=doc.getId()%>" target="_blank"><span class="StoryContentColor"><%=doc.getSummary()%></span></a></p><div align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="24" colspan="2" align="right"><div align="left"><a href="documentdisplay.do?id=<%=doc.getId()%>" target="_blank"><img src="library/image/enter.jpg" width="46" height="20" border="0"></a></div></td>
</tr>
</table>
</div>
</tr>
<tr align="right" bgcolor="#EFEFEF">
<td height="29" colspan="2"> </td>
</tr>
</table>
<p>
<%
}
%>
</p>
<p align="right">
<a href="documentlist.do?page=first" target="_self">
第一页
</a>
<a href="documentlist.do?page=next" target="_self">
下一页
</a>
<a href="documentlist.do?page=previous" target="_self">
上一页
</a>
<a href="documentlist.do?page=last" target="_self">
最后一页
</a></p>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?