Quantcast
Channel: SCN : Popular Discussions - Java SDK Application Development
Viewing all articles
Browse latest Browse all 1701

Opendocument.jsp

$
0
0

I am trying to implement opendocument with the log in token. New to this. Environment is SAP BI 4.0 SP6 Java on Windows.

I have 2 questions

 

1. Where do I store new opendocument.jsp that I am creating

2. I do not understand the reason for this code in opendocument.jsp (this is taken from the example in the SAP document xi4_opendocument_en.pdf)

return ("http://<server>:<port>/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=Aa6GrrM79cRAmaOSMGoad

KI&sIDType=CUID&token=" + tokenEncode)

 

If the user calls in the urls with the new documents all the time does the code

iDocID=Aa6GrrM79cRAmaOSMGoadKI&sIDType=CUID from the url above limits to same document.

 

I am sure I do not understand this but can anyone explain how can I pass security token for multiple users calling multiple opendocuments

 

below the code I created for my opendocument.jsp

 

 

<%@ page import = "com.crystaldecisions.sdk.occa.infostore.*,

com.crystaldecisions.sdk.plugin.desktop.common.*,

com.crystaldecisions.sdk.framework.*,

com.crystaldecisions.sdk.occa.security.*,

com.crystaldecisions.sdk.exception.SDKException,

com.crystaldecisions.sdk.occa.managedreports.IReportSourceFactory,

java.util.Locale,

com.crystaldecisions.report.web.viewer.CrystalReportViewer,

com.crystaldecisions.sdk.occa.report.reportsource.IReportSource, java.net.*"

%>

 

<%

 

String serializedSession;

/* Set Enterprise Logon credentials. *

    String cms = "";
    String username = "";
    String password = "";
    String auth = "secEnterprise";
    IEnterpriseSession enterpriseSession;
    String token = "";

/

 

/* Log onto Enterprise and serialize the Enterprise Session. */

enterpriseSession = CrystalEnterprise.getSessionMgr().logon(username, password, cms, auth);

String logonToken = enterpriseSession.getLogonTokenMgr().createLogonToken("",30,100);

String tokenEncode = URLEncoder.encode(logonToken, "utf-8");

 

String url = "http://<server>:8080/BOE/OpenDocument/opendoc/openDocument.jsp?token=" + tokenEncode+"&iDocID=AeKTiOvM_DpBgQ9xiEPt7NE&sIDType=CUID";

 

response.sendRedirect(url);

 

 

%>

 

I will appreciate all the comments and responses.

 

 

Regards,

Igor Cotler


Viewing all articles
Browse latest Browse all 1701

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>