addfriend.jsp
资源名称:JSP-OA.rar [点击查看]
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
Java
- <%@ page contentType="text/html;charset=utf-8"
- import = "java.io.File"
- import = "cn.js.fan.util.ErrMsgException"
- import = "cn.js.fan.web.SkinUtil"
- %>
- <%@ page import="java.util.Calendar" %>
- <title><%=cn.js.fan.web.Global.AppName%></title>
- <%@ include file="../inc/nocache.jsp"%>
- <jsp:useBean id="StrUtil" scope="page" class="cn.js.fan.util.StrUtil" />
- <jsp:useBean id="userservice" scope="page" class="com.redmoon.forum.person.userservice" />
- <%
- boolean isSuccess = false;
- try {
- isSuccess = userservice.AddFriend(request);
- }
- catch (ErrMsgException e) {
- out.println(StrUtil.Alert_Back(e.getMessage()));
- return;
- }
- String msg;
- if (isSuccess)
- msg = SkinUtil.LoadString(request, "info_op_success"); // "加为好友成功!";
- else
- msg = SkinUtil.LoadString(request, "info_op_fail"); // "加为好友失败!";
- out.println(StrUtil.Alert_Back(msg));
- %>