one_page.jsp~29~
来自「FAQ管理全源代码,可以实现一般的FAQ管理功能,界面简洁而明快,占用资源不大.」· JSP~29~ 代码 · 共 49 行
JSP~29~
49 行
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.*,java.text.*" %>
<!--单个浏览-->
<html>
<head>
</head>
<jsp:useBean id="con" scope="session" class="faq_project.review_Bean" />
<body bgcolor="#ffffff">
<h1 align="center">
<%=session.getAttribute("question")%>
</h1>
<table background="1.jpg" width="468" height="230" border="1">
<tr>
<TD height="163" colSpan=3><%=session.getAttribute("answer")%></TD>
</tr>
<tr>
<td width="69" height="17" colspan="1" bgcolor="#D7D7FF" scope="col">编号:</td>
<td width="383" colspan="2"><%=session.getAttribute("id")%></td>
</tr>
<tr>
<td bgcolor="#D7D7FF" height="17" colspan="1" scope="col">类型:</td>
<td colspan="2"><%=session.getAttribute("type")%></td>
</tr>
<tr>
<td bgcolor="#D7D7FF" height="17" colspan="1" scope="col">修改日期:</td>
<td colspan="2"><%=session.getAttribute("modify")%></td>
</tr>
</table>
<%
System.out.println(session.getAttribute("id").toString());
con.setQuestion(session.getAttribute("id").toString());
while(con.next()){
Iterator rs=con.getLists().iterator();
%>
<br />
<table bgcolor="#CCCCCC" width="468" height="193" border="1">
<tr>
<td width="98" height="22">发表者</td>
<td width="354"><%=rs.next().toString()%></td>
</tr>
<tr>
<TD height="163" colspan="2"><%=rs.next().toString()%></TD>
</tr>
</table>
<%}%>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?