view.jsp
1.23 KB
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.engine.common.service.ChatResourceService" %>
<%@ page import="com.engine.common.service.impl.ChatResourceServiceImpl" %>
<%@ page import="com.engine.common.util.ParamUtil" %>
<%@ page import="com.engine.common.util.ServiceUtil" %>
<%@ page import="com.engine.workflow.util.CommonUtil" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="java.util.Map" %>
<%
String authCode = Util.null2String(request.getParameter("em_auth_code"));
ChatResourceService chatResourceService = (ChatResourceService) ServiceUtil.getService(ChatResourceServiceImpl.class,
CommonUtil.getUserByRequest(request, response));
Map <String, Object> apidatas = chatResourceService.shareView(ParamUtil.request2Map(request));
String viewUrl = Util.null2String(apidatas.get("viewUrl"));
viewUrl += "&em_auth_code=" + authCode;
if (!"".equals(viewUrl)) {
if(viewUrl.indexOf("/spa/workflow/static4mobile/index.html") > -1) {
viewUrl = viewUrl.replace("static4mobile","static4mobileform");
}
//request.getRequestDispatcher(viewUrl).forward(request, response);
response.sendRedirect(viewUrl);
return;
}
%>