forum_face_upload.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.db.*"
- import = "cn.js.fan.util.*"
- import = "cn.js.fan.web.Global"
- import = "cn.js.fan.web.SkinUtil"
- import = "com.redmoon.forum.ui.*"
- import = "com.redmoon.forum.*"
- %>
- <%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
- <%@ include file="../inc/nocache.jsp" %>
- <jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/>
- <jsp:useBean id="privilege" scope="page" class="com.redmoon.forum.Privilege"/>
- <%
- if (!privilege.isMasterLogin(request))
- {
- out.print(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
- return;
- }
- try {
- FaceMgr fm = new FaceMgr();
- String s = fm.uploadImg(application, request);
- out.println(fchar.Alert_Redirect(SkinUtil.LoadString(request, "info_op_success"), "forum_face.jsp"));
- }
- catch (ErrMsgException e) {
- out.print(StrUtil.Alert_Back(e.getMessage()));
- }
- %>