📄 rebbsview.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="serv.bbs"%>
<%
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 'rebbsview.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">
-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
<!--
body {
background-color: #99CCCC;
}
-->
</style></head>
<body>
<% try{
request.setCharacterEncoding("gb2312") ;
ArrayList list = (ArrayList)request.getAttribute("result");
Iterator it=list.iterator();
bbs in = new bbs();
while(it.hasNext())
{
in=(bbs)it.next();
%>
<p>回复内容:</p>
<table width="484" height="71" border="0">
<tr>
<td><%=in.getBbsContent()%></td>
</tr>
</table>
<p>回复署名:<%=in.getBbsUsername()%> </p>
<p>回复时间:<%=in.getBbsDateandtime()%></p>
<hr>
<p> </p>
<%
}
}
catch(Exception e){}
%>
<a href="/May/home.jsp">返回主页</a>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -