left.jsp

来自「《Web程序测试实训教程(Java版)》-徐民鹰-源代码」· JSP 代码 · 共 46 行

JSP
46
字号
<%@ page language="java" import="java.util.*" %>
<%@page import="java.text.*" 
contentType="text/html; charset=gb2312" 
buffer="20kb" 
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>left</title>
<link href="../include/style.css" rel="stylesheet">
<body>
<br>
<table width="107"  border="0" align="center" cellpadding="0" cellspacing="0">
  
<%
            //图书类别列表
            bookType.BtypeDB btypeDB = new bookType.BtypeDB();
            Collection booktype = btypeDB.getTypes();
            if (booktype != null)
            {
                if (booktype.size () > 0)
                {
                    for (Iterator iterator = booktype.iterator(); iterator.hasNext(); )
                    {
                    	bookType.Btype btype = (bookType.Btype) iterator.next ();
%>
                        <tr>
                            
                            
                            <td align="center">
                                <b><a href="Home.jsp?id=<%= btype.getId () %>&btype=<%=btype.getType() %>" target="mainFrame"><%= btype.getType()%></a></b>      
                            </td>
                            
                        </tr>
<%
                    }
                }
            }
%>  
  
  
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?