delmsg.jsp
资源名称:JSP-OA.rar [点击查看]
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
Java
- <%@ page contentType="text/html;charset=utf-8" %>
- <%@ include file="../inc/nocache.jsp"%>
- <%@ page import="java.sql.ResultSet"%>
- <%@ page import="java.sql.SQLException"%>
- <%@ page import="cn.js.fan.util.ErrMsgException"%>
- <jsp:useBean id="StrUtil" scope="page" class="cn.js.fan.util.StrUtil"/>
- <jsp:useBean id="privilege" scope="page" class="com.redmoon.forum.Privilege"/>
- <%
- if (!privilege.isUserLogin(request))
- { %>
- <table width="320" border="0" cellspacing="0" cellpadding="0" align="center" class="9black">
- <tr>
- <td><li>您的登录已过期,请重新登录,如果不是会员请先注册。</td>
- </tr>
- </table>
- <% } %>
- <jsp:useBean id="Msg" scope="page" class="com.redmoon.forum.message.MessageMgr"/>
- <%
- boolean isSuccess = false;
- try {
- isSuccess = Msg.delMsg(request);
- }
- catch (ErrMsgException e) {
- out.println(StrUtil.makeErrMsg("消息删除失败:"+e.getMessage()));
- return;
- }
- if (isSuccess) {
- out.println(StrUtil.Alert_Redirect("消息删除成功!", "message.jsp"));
- }
- else {
- out.println(StrUtil.Alert_Back("消息删除失败!"));
- }
- %>