Thanks. Will be update the parameters name with something meaningful once I get this working. I tried this but doesn't seems to work
<%@ page import="com.crystaldecisions.sdk.exception.SDKException" %>
<%@ page import="com.crystaldecisions.sdk.framework.CrystalEnterprise" %>
<%@ page import="com.crystaldecisions.sdk.framework.IEnterpriseSession" %>
<%@ page import="com.crystaldecisions.sdk.framework.ISessionMgr" %>
<%@ page import="com.crystaldecisions.sdk.occa.infostore.IInfoStore" %>
<%@ page import="com.crystaldecisions.sdk.occa.security.ILogonTokenMgr"%>
<%
try
{
String systemName = "Server:6400";
String userName = "Administrator";
String password = "BOass23in";
String authType = "secEnterprise";
IEnterpriseSession enterpriseSession=null;
ISessionMgr enterpriseSessionMgr = CrystalEnterprise.getSessionMgr();
enterpriseSession = enterpriseSessionMgr.logon(userName, password, systemName, authType);
ILogonTokenMgr logonTokenMgr = enterpriseSession.getLogonTokenMgr();
String defaultToken = logonTokenMgr.createWCAToken("",10,1);
response.sendRedirect("http://boprod.xx.com/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AUdInRsZf4pIsLT0vsPZw7c&lsSOrder%20Number%3A=${param.n1}&lsSRequest%20Number%3A=${param.n1}&lsSContract
%20Number%3A=${param.n1}&&token=" + defaultToken);
out.println(defaultToken);
}
catch(Exception e)
{
out.println(e);
}
%>