<%@ page import="com.crystaldecisions.sdk.exception.SDKException" %> <%@ page import="com.crystaldecisions.sdk.framework.*" %> <%@ page import="com.crystaldecisions.sdk.occa.infostore.*" %> <%@ page import="com.crystaldecisions.sdk.occa.security.*"%> <%@ page import="java.net.*"%> <%@ page import="com.crystaldecisions.enterprise.*"%> <%@ page import="com.crystaldecisions.sdk.plugin.admin.*"%> <%@ page import="java.sql.*"%> <%@ page import="com.businessobjects.webutil.Encoder" %> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <% //BO Session and redirect to Infoview IEnterpriseSession enterpriseSession; /* * Set Enterprise Logon credentials. */ final String BO_CMS_NAME = ""; final String BO_AUTH_TYPE = "secEnterprise"; final String BO_USERNAME = ""; final String BO_PASSWORD = ""; ILogonTokenMgr logonTokenMgr; String defaultToken = ""; /* * Log onto Enterprise */ boolean loggedIn = true; try { //Create session token enterpriseSession = CrystalEnterprise.getSessionMgr().logon(BO_USERNAME,BO_PASSWORD, BO_CMS_NAME,BO_AUTH_TYPE); logonTokenMgr = enterpriseSession.getLogonTokenMgr(); defaultToken = logonTokenMgr.createWCAToken("", 20, 1); //Inject the token into the CMC Token cookie and then enter the CMC page Cookie ckCMC = new Cookie("CMCPLATFORMSVC_COOKIE_TOKEN", defaultToken); ckCMC.setPath("/"); response.addCookie(ckCMC); response.sendRedirect("/BOE/CMC"); } catch (Exception error) { loggedIn = false; out.println(error); } %> Insert title here