savereannounce.jsp

来自「这是一个用jsp+SQLServer开发的简易邮件系统!」· JSP 代码 · 共 54 行

JSP
54
字号
<%@ page contentType="text/html;charset=GBK" %>
<%@ include file="INC/const.jsp"%>
<%@ include file="INC/theme.jsp"%>
<%
	String errMsg="";
	try{
		Forum theForum=ForumFactory.getForum(forumID);
		String url=theForum.addMSG(request,response);
		stats=theForum.getForumType()+"回复成功!";
		out.println(headLine(forumID,forumName,forumLogo,theForum.getForumType(),2,stats));
%>

<meta http-equiv=refresh content="3;URL=<%=url%>">

<br><table cellpadding=0 cellspacing=0 border=0 width=95% bgcolor=<%=tableBackColor%> align=center>
		<tr><td><table cellpadding=3 cellspacing=1 border=0 width="100%">
		<tr align=center><td width="100%" bgcolor=<%=tableTitleColor%>><b><FONT COLOR=<%=tableFontColor%>>状态:您回复帖子成功</font></b></td>
		</tr><tr><td width="100%" bgcolor=<%=tableBodyColor%>>
		<FONT COLOR=<%=tableContentColor%>>本页面将在3秒后自动返回您所发表的帖子页面,<b>您可以选择以下操作:</b><br><ul>
		<li><a href="index.jsp"><font color="<%=tableContentColor%>">返回首页</font></a></li>
		<li><a href="list.jsp?forumID=<%=forumID%>"><font color="<%=tableContentColor%>"><%=theForum.getForumType()%></font></a></li>
		<li><a href="<%=url%>"><font color="<%=tableContentColor%>">发表的帖子</font></a></li>
		</ul></td></tr></table></td></tr></table>
<%
	}
	catch(ForumNotFoundException e)
	{
		e.printStackTrace();
		errMsg=e.getMessage();
		%>
		<%@include file="INC/error.jsp"%>
		<%
		
	}
	catch(UserNotFoundException e)
	{
		e.printStackTrace();
		errMsg=e.getMessage();
		%>
		<%@include file="INC/error.jsp"%>
		<%
	}
	catch(Exception e)
	{
		e.printStackTrace();
		errMsg=e.getMessage();
		%>
		<%@include file="INC/error.jsp"%>
		<%
	}
			

%>
<%@ include file="foot.jsp"%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?