📄 answer.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page language="java" import="message_board.board"%>
<%@ page language="java" import="java.util.*"%>
<%@ page language="java" import="java.io.*"%>
<%@ page import="java.util.Date,java.text.SimpleDateFormat"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>五十里旅行社--公告</title>
</head>
<jsp:useBean id="j" scope="application" class="jdbc.jdbc"/>
<jsp:useBean id="an" scope="application" class="message_board.answer"/>
<form name="form1" method="post" action="answer_exe.jsp">
<%
SimpleDateFormat df=new SimpleDateFormat("yyyy年MM月dd日");
String response_time=df.format(new Date());
String title=new String(request.getParameter("title").getBytes("ISO8859_1"), "GBK");
String m_title=title.trim();
an.board_title=m_title;
an.con=j.getConnection();
Collection bcol=an.show();
Iterator it=bcol.iterator();
while(it.hasNext())
{
board bu=(board)it.next();
%>
<table width="100%" border="1">
<tr>
<td>留言用户名<%=bu.getBoard_name()%></td>
<td>留言时间<%=bu.getBoard_time()%></td>
</tr>
<tr>
<td colspan="2">留言标题<%=bu.getBoard_title()%></td>
</tr>
<tr>
<td colspan="2"><%=bu.getBoard_context()%></td>
</tr>
<tr>
<td colspan="2">回复内容</td>
</tr>
<tr>
<td colspan="2"><textarea name="response_context" cols="80" rows="8"></textarea></td>
</tr>
</table>
<%
it.remove();
}
j.releaseConnection(an.con);
%>
<input name="board_title" type="hidden" value=<%=m_title%>>
<input name="response_time" type="hidden" value=<%=response_time%>>
<p align="right">
<input type="submit" name="Submit" value="提交">
</p>
</form>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -