📄 responselist.jsp
字号:
<%@ page contentType="text/html;charset=gb2312" language="java"%>
<%@ include file="/common/taglibs.jsp"%>
<html:html>
<head>
<title>
帖子列表
</title>
</head>
<link href="images/myStyleClass.css" rel="stylesheet" type="text/css">
<body>
<%@ include file="/common/header.jsp"%>
<html:errors />
<%@ page import="j2eebbs.*"%>
<%@ page import="java.util.*"%>
<%
session.setAttribute(Constants.TALK_TYPE_KEY, "response");
String username = (String) session.getAttribute("username");
Vector responseVector = (Vector) session
.getAttribute(Constants.RESPONSE_LIST_KEY);
Response resp = null;
if (responseVector != null) {
String content;
String grade;
%>
<table width="775" border="1" align="center">
<tr>
<td colspan="2">
<table width="97%" border="0" align="center">
<tr>
<td>
欢迎你访问论坛:<%=username%>
</td>
<td align="right">
<A href="<%=request.getContextPath()%>/backtoindex.do">
首页
</A>
<A href="logoff.do">
注销登录
</A>
<A href="newResponse.do">
回复主题
</A>
</td>
</tr>
</table>
</td>
</tr>
<%
for (int i = 0; i < responseVector.size(); i++) {
resp = (Response) responseVector.get(i);
content = resp.getContent();
if (content == null)
content = "";
grade = resp.getGrade();
if (grade == null)
grade = "";
%>
<tr>
<td colspan="2">
<table width="100%" border="0" bordercolor="#FFFFCC">
<tr bgcolor="#3366CC">
<td width="22%">
作者:<%=resp.getAuthor()%>
</td>
<td width="78%">
标题:<%=resp.getTitle()%>
<%session.setAttribute("topic",resp.getTitle()); %>
</td>
</tr>
<tr bgcolor="#CCCCCC">
<td>
等级:<%=grade%>
<BR>
发表时间:<%=resp.getSubmittime()%>
</td>
<td>
<%=content%>
</td>
</tr>
</table>
</td>
</tr>
<%}
%>
<%}
%>
</table>
<%@ include file="/common/footer.jsp"%>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -