Nc6Entrance.jsp 1.66 KB
<%@ page import="weaver.integration.entrance.bean.OutterLoginBean" %>
<%@ page import="weaver.integration.entrance.service.EntranceService" %>
<%@ page import="weaver.integration.entrance.service.IEntranceService" %>
<%@ page import="weaver.integration.entrance.service.IOutterSysServer" %>
<%@ page import="weaver.integration.entrance.service.impl.Nc6Server" %>
<%@ page import="weaver.integration.entrance.service.permission.IPermissionService" %>
<%@ page import="weaver.integration.entrance.service.permission.PermissionService" %>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%--<%@ include file="/systeminfo/init_wev8.jsp" %>--%>
<%@ page import="weaver.general.Util" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.Objects" %>

<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="RecordSet1" class="weaver.conn.RecordSet" scope="page" />

<%
	IPermissionService permissionService=new PermissionService();
	String operationType = permissionService.getOperationType(request);

	String sysid = Util.null2String(request.getParameter("id"));// 系统标识

	IEntranceService entranceService = new EntranceService();
	IOutterSysServer nc6Server = new Nc6Server();
	OutterLoginBean loginBean = entranceService.getLoginBean(nc6Server, sysid, operationType, request, response);

	Map<String, Object> nc6Map = entranceService.getUrl(nc6Server,loginBean, operationType, request, response);

	if (Objects.nonNull(nc6Map)){
		if ("true".equals(nc6Map.get("isRedirect"))){
			response.sendRedirect(nc6Map.get("redirectUrl").toString());
			return;
		}
	}

%>