📄 notelist.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%>
<%@ page import="com.business.NoteBean, com.domain.Note, java.util.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>留言信息列表</title>
</head>
<body>
<h2>所有留言信息如下:</h2><br />
<table border="1" width="700">
<tr>
<th width="500">留言标题</th>
<th width="100">作者姓名</th>
<th width="100">发布时间</th>
</tr>
<%
NoteBean noteBean = new NoteBean();
List noteList = noteBean.findAllNotes();
Iterator noteIt = noteList.iterator();
while(noteIt.hasNext()) {
Note tn = (Note)noteIt.next();
%>
<tr>
<td><%= tn.getTitle() %></td>
<td><%= tn.getAuthor() %></td>
<td><%= tn.getCreateTime() %></td>
</tr>
<%
}
%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -