jump.jsp
资源名称:JSP-OA.rar [点击查看]
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
Java
- <%@ page contentType="text/html;charset=utf-8"
- import = "cn.js.fan.util.*"
- %><jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege" /><%
- String fromWhere = ParamUtil.get(request, "fromWhere");
- String toWhere = ParamUtil.get(request, "toWhere");
- String action = ParamUtil.get(request, "action");
- String rootpath = request.getContextPath();
- String rootid = ParamUtil.get(request, "rootid");
- try {
- if (privilege.jump(request, response, fromWhere, toWhere)) {
- if (toWhere.equals("forum")) {
- if (action.equals("usercenter"))
- response.sendRedirect(rootpath + "/usercenter.jsp");
- else {
- if (rootid.equals(""))
- response.sendRedirect(rootpath + "/forum/index.jsp");
- else
- response.sendRedirect(rootpath + "/forum/showtopic.jsp?rootid=" + rootid);
- }
- }
- if (toWhere.equals("blog")) {
- if (rootid.equals(""))
- response.sendRedirect(rootpath + "/blog/index.jsp");
- else
- response.sendRedirect(rootpath + "/forum/showblog.jsp?rootid=" + rootid);
- }
- if (toWhere.equals("oa"))
- response.sendRedirect(rootpath + "/oa.jsp");
- }
- }
- catch (ErrMsgException e) {
- out.print(StrUtil.Alert(e.getMessage()));
- }
- %>