|
Re: to pass session variables from a Java application [message #77369 is a reply to message #77333] |
Wed, 05 June 2002 05:47 |
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>
|
|
|