Hi All,
I would like to know what are the possible ways of integrating any existing J2EE application with iPortal. We would be having some pre-canned reports in iPortal and there would be links of those reports on my application. The application user would click on those reports and it should directly take him to the iPortal without having to go through any iPortal Authentication. Currently i am using javascript to call the reports, works so far but is highly unsecured.
Attaching a sample code.
function executeReport(userID) {
var reportURL = escape("/home/administrator/ProjectList.rptdesign");
var tokenParameter = "__token=" + Math.random();
var URL = [];
URL.push('__requesttype=immediate');
URL.push('&__executableName=');URL.push(reportURL);
URL.push('&userid=administrator');
URL.push('&password=XXXXX');//BAD: need to do something about this
URL.push('&__saveOutput=false');
URL.push(escape('&ConnProfileURL=E:ActuateConnectionProfile.xml'));
URL.push('&ConnectionProfileName=SOME_SCHEMA');
URL.push('&invokesubmit=true');//escapes the parameter page.. and the parameter are applied to the results directly
var url1 = "
http://localhost:8700/iportal/executereport.do?" + encodeURI(URL.join("")) + "&volume=nova&" +tokenParameter;
window.open(url1,'AcWizardWindowForJSP1620837270', 800, 565, 'status=yes, scrollbars=yes, resizable=yes, location=yes');
}
Thanks in advance.
Amit Jain.