?? 10cce7562086001d17289151bfb68379
字號:
<%@ page language="java" import="java.util.*,java.sql.*" pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'reg.jsp' starting page</title>
<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>
<center>
<table border="1">
<tr><td width="150px" align="center">標題</td><td width="150px" align="center">時間</td><td width="150px" align="center">內容</td><td width="150px" align="center">操作</td></tr>
<%ResultSet rs=(ResultSet)request.getAttribute("result");
while(rs.next()){%>
<tr><td width="150px" align="center"><%=rs.getString("title") %></td><td width="150px" align="center"><%=rs.getString("time") %></td><td width="150px" align="center"><%=rs.getString("detail") %></td><td width="150px" align="center"><a href="./RegProcess?action=edit&title=<%=rs.getString("title") %>">修改</a>| |<a href="./RegProcess?action=delete&title=<%=rs.getString("title") %>">刪除</a></td></tr>
<%} %>
</table>
</center>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -