room_add.jsp
资源名称:JSP-OA.rar [点击查看]
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
Java
- <%@ page contentType="text/html;charset=utf-8"%>
- <%@ page import="cn.js.fan.util.*"%>
- <%@ page import="cn.js.fan.web.*"%>
- <%@ page import="cn.js.fan.db.*"%>
- <%@ page import="com.redmoon.chat.*"%>
- <%@ include file="../../inc/nocache.jsp"%>
- <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
- <%
- if (!privilege.isUserPrivValid(request, "admin.chat")) {
- out.print(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
- return;
- }
- %>
- <%
- RoomMgr rm = new RoomMgr();
- try {
- boolean re = rm.insert(request, privilege);
- if (re)
- response.sendRedirect("../chatservice?mode=addroom&newroom=" + StrUtil.UrlEncode(ParamUtil.get(request, "name")));
- else
- out.print(StrUtil.Alert_Back("操作失败!"));
- }
- catch (ErrMsgException e) {
- out.println(StrUtil.Alert_Back(e.getMessage()));
- }
- %>