📄 book_left.jsp
字号:
<%@ page contentType="text/html;charset=gbk"%>
<%@ page import="java.sql.*"%>
<jsp:useBean id="databean" scope="session" class="ConnBean.conn" />
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
response.addHeader("Cache-Control", "no-cache");
response.addHeader("Expires", "Thu, 01 Jan 1970 00:00:01 GMT");
%>
<html>
<head>
<base href="<%=basePath%>">
<title>购书导航</title>
<style type="text/css">
.style1 {
color: #4F7FC7;
font-size: 14px;
}
</style>
<LINK href="../images/style.css" type=text/css rel=stylesheet>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<TABLE width=168 border=0 align="center">
<form action="bookinfo.jsp" method="post" name="form1">
<%
ResultSet rs = null;
String sql = "select * from booksort";
rs = databean.executeQuery(sql);
while (rs.next()) {
String id = rs.getString("ID");
String sortname = rs.getString("SortName");
%>
<TR width=168>
<TD width="10" height="15">
<FONT class=text_b04>·</FONT>
</TD>
<TD width="158" height="15" bordercolor="#3300FF">
<A href="bookinfo/bookinfo.jsp?id=<%out.print(id);%>"
class="link_a01 STYLE1" target="rightframe"> <%
out.print(sortname);
%>
</a>
</TD>
</TR>
<%
}
%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -