Home » Fusion Middleware & Colab Suite » WebCenter Suite & Portal » to pass session variables from a Java application
to pass session variables from a Java application [message #77333] Fri, 22 February 2002 04:28 Go to next message
ram
Messages: 95
Registered: November 2000
Member
I would like to pass session varialbes from a application written in Java to my reports done using portal. Is there any way i can do this.

Thanks

Ram
Re: to pass session variables from a Java application [message #77369 is a reply to message #77333] Wed, 05 June 2002 05:47 Go to previous message
S.H.
Messages: 2
Registered: June 2002
Junior Member
Maybe you can use PortalRenderRequest to get your session variable into a user-defined variable. Save your url to your portal report into a variable in your Java code. Then in your Java code concatenate the url variable to the session variable like url + v_var:

<%@page import = "oracle.portal.provider.v1.*, oracle.portal.provider.v1.http.*, java.util.Enumeration" %>
<%@page import = "com.company.system.*"%>

<%
PortletRenderRequest portletRequest = (PortletRenderRequest)
request.getAttribute(HttpProvider.PORTLET_RENDER_REQUEST);
%>

<center>

Proof of Concept: <%= portletRequest.getUser().getName() %>



<%
java.util.Enumeration enum = portletRequest.getParameterNames();
String lv_appid = null;
while(enum.hasMoreElements()) {
String param = (String) enum.nextElement();
if (param.equals("p_arg_values")){
lv_appid = portletRequest.getParameter(param);
}

out.println(param + " = " + portletRequest.getParameter(param) + "
");
}
%>
<%
yoursystemUtil.setContext(this);
out.println("Return string from testConnection is " + yoursystemUtil.testConnection());
%>

<% String url = "/pls/portal30/link_choose_dept?p_app_id="; %>
> Pass param
</center>
Previous Topic: creating a text file for reports in html pages
Next Topic: oracle 9ias portal install. dobut
Goto Forum:
  


Current Time: Tue Aug 11 11:48:06 CDT 2020