title: SAP BO login using custom.jsp
body: <p>I'm using custom.jsp in order to avoid the login screen and load the home screen directly, but still it's asking for login credentials after restarting the tomcat. The path of the custom.jsp file is "SAP BusinessObjects\tomcat\webapps\BOE\WEB-INF\eclipse\plugins\webpath.InfoView\web"</p>
  
  <p>I don't know what I'm missing here and I'm new to this. Below is my jsp code. Thanks.</p>
  
  <pre><code>&lt;%@ page import="com.crystaldecisions.sdk.exception.SDKException" %&gt;
  &lt;%@ page import="com.crystaldecisions.sdk.framework.*" %&gt;
  &lt;%@ page import="com.crystaldecisions.sdk.occa.infostore.*" %&gt;
  &lt;%@ page import="com.crystaldecisions.sdk.occa.security.*"%&gt;
  &lt;%@ page import="java.net.*"%&gt;
  &lt;%@ page import="com.crystaldecisions.enterprise.*"%&gt;
  &lt;%@ page import="com.crystaldecisions.sdk.plugin.admin.*"%&gt;
  &lt;%@ page import="java.sql.*"%&gt;
  &lt;%@ page import="com.businessobjects.webutil.Encoder" %&gt;
  
  
  &lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
  pageEncoding="ISO-8859-1"%&gt;
  
  
  &lt;%
  
  IEnterpriseSession enterpriseSession;
  
  
  final String BO_CMS_NAME = "BI98svr";
  final String BO_AUTH_TYPE = "secEnterprise";
  final String BO_USERNAME = "user121";
  final String BO_PASSWORD = "pass121";
  ILogonTokenMgr logonTokenMgr;
  String defaultToken = "";
  
  
  boolean loggedIn = true;
  try {
  
  enterpriseSession =
  CrystalEnterprise.getSessionMgr().logon(BO_USERNAME,BO_PASSWORD, 
  BO_CMS_NAME,BO_AUTH_TYPE);
  logonTokenMgr = enterpriseSession.getLogonTokenMgr();
  defaultToken = logonTokenMgr.createWCAToken("", 20, 1);
  
  
  response.sendRedirect("http://"+BO_CMS_NAME+":8080/BOE/BI/logon/start.do?ivsLogonToken="+Encoder.encodeURL(defaultToken));
  
  
  }
  catch (Exception error)
  {
  loggedIn = false;
  out.println(error);
  }
  %&gt;
  
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>