Passing Cookies To Portlets

Greetings,
I have implemented the ISSOIntegration interface, and in the GetSecureCookies method I am returning an array of cookie names that I want passed down to my portlets. I hit the portal with the said cookies in the headers, and I am able to extract them from the IXPRequest object passed to GetLoginInfo (in ISSOIntegration). However, the portal never sends the cookies to any portlets once I start browsing my portal (I verified this by using a tunneling tool). Does anyone know how to properly set this up?
Regards,
Andrew Bays
bdg | [email protected] | http://www.thebdgway.com

I am not expert here. Have a look at portalconfig.xml. May be this may help:
This setting will be used only if you are using an SSO product. Together with CookiePath (below) these two values are the domain and path that will be used for your secure SSO cookies. The Plumtree web server will send your secure SSO cookies to any remote portlet server whose URL matches the domain and path specified here. The domain must begin with a period ('.').
          <setting name="CookieDomain">
               <value xsi:type="xsd:string">.plumtree.com</value>
          </setting>
Edited by Bryazgin at 10/24/2007 1:42 PM

Similar Messages

  • Passing cookies to WSRP Provider

    When deploying a JSR168 portlet in OC4J 10.1.3.3 and registering it as a provider in Oracle Portal 10.1.4 the RenderRequest object does not contain all the cookie values from the original request.
    The "request" object in the portlet is of type PortletRequest. The following code will print out all available values. In our case only user-agent is showing up in the Enumeration.
    Enumeration propNames = request.getPropertyNames();
    while (propNames.hasMoreElements()) {
    String pName = (String) propNames.nextElement();
    out.print("<tr><td>Property Name: (");
    out.print(pName);
    out.print(")</td><td>");
    Enumeration propValNames=request.getProperties(pName);
    while (propValNames.hasMoreElements()) {
    String propVal = (String) propValNames.nextElement();
    out.println("Val==" + propVal);
    out.println("<br>");
    out.println("</td></tr>");
    I know passing cookies over WSRP is not specifically in the spec, is there any way to do this? Is there any way we can pass some custom value over WSRP back to the JSR168 portlet?

    I am not expert here. Have a look at portalconfig.xml. May be this may help:
    This setting will be used only if you are using an SSO product. Together with CookiePath (below) these two values are the domain and path that will be used for your secure SSO cookies. The Plumtree web server will send your secure SSO cookies to any remote portlet server whose URL matches the domain and path specified here. The domain must begin with a period ('.').
              <setting name="CookieDomain">
                   <value xsi:type="xsd:string">.plumtree.com</value>
              </setting>
    Edited by Bryazgin at 10/24/2007 1:42 PM

  • Passing cookies to urlservices

    I have been evaluating the urlservices portlet, and have a question. Is it possible to pass cookies to the url? In particular I am trying to access a perl script on a server that depends upon a cookie for it to work. If this is not yet implemented, is it possible to get the source for this portlet for me to add it myself?

    I am not expert here. Have a look at portalconfig.xml. May be this may help:
    This setting will be used only if you are using an SSO product. Together with CookiePath (below) these two values are the domain and path that will be used for your secure SSO cookies. The Plumtree web server will send your secure SSO cookies to any remote portlet server whose URL matches the domain and path specified here. The domain must begin with a period ('.').
              <setting name="CookieDomain">
                   <value xsi:type="xsd:string">.plumtree.com</value>
              </setting>
    Edited by Bryazgin at 10/24/2007 1:42 PM

  • Oracle JSF portlet Bridge - Passing parameters to Portlet

    Hi All,
    I am referring following link to pass parameters to portlets that are created from TaskFlow.
    http://sqltech.cl/doc/oas11gR1/webcenter.1111/e10148/jpsdg_bridge.htm#CACCJCAA.
    I am able to pass values to portlet by having setters for respective navigation parameter exposed in oracle-portlet.xml file
    Now, how to invoke the method in a portlet that will make use of the passed values and do further processing. The method would be same as getEmployees() mentioned in the tutorial above. But the getEmployee method is not invoked event after doing all the event mapping.
    Regards,
    Sanjay

    AH, if you are using ADF faces than the risk gets smaller. If you are used to eclipse and you developer your ADF application there than i see a good chance for succeeding later on.
    You might have small issues when migrating to JDeveloper but i don't think they will be blocking.
    If you are working with lots of WS, have you looked at the different types of mash-ups you have in WebCenter?
    For example the omniportlet which allows you to integrate webservices and style the parameter forms and output.
    You can also create data controls at runtime in Webcenter that are based upon webservices.
    There aren't many cases available. Maybe you should come to OOW in October (if that isn't to late). There will be some customers presenting their use cases there.

  • Spaces: passing parameters to portlet

    Does anybody know how i can pass a parameter from the URL to my portlet?
    I thought i would be the same as with the oracle portal but i'm wrong...
    I tried creating a page parameter on my space page and than pass that page parameter to my portlet. When i set a default value of that page parameter, the value gets passed to my portlet but i want that my portlets receives the value from my URL.
    For example i call following page:
    http://localhost:7777/webcenter/spaces/myGroup/page/somePage?myId=11
    How do i pass the myId to my portlet?
    I'm using ADF portlets if that can be of any use...

    Nevermind... problem solved.
    I had t create a page parameter and bind the page parameter to #{param.myId}
    My portlet parameter gets bound to the page parameter and than it's get parsed correctly.

  • Passing param to portlet

    Hi,
    I want to pass param to portlet. I've the right param in the URL and I know that I've to use the wwpro_api_parameters and the show_portlet procedure. But I do'nt know where is this procedure (show_portlet) or where i've to create it.
    Please, help
    Tks

    Hi,
    I want to pass param to portlet. I've the right param in the URL and I know that I've to use the wwpro_api_parameters and the show_portlet procedure. But I do'nt know where is this procedure (show_portlet) or where i've to create it.
    Please, help
    Tks

  • Exchange Portlet - Session Cookies - Collapsing Portlets

    I am having trouble with the exchange portlet collapsing when refreshed.
    I have been tracing through the code and narrowed it down to a missing cookie in the PortletRenderRequest object.
    The process method in ExchangeProvider creates a new ApplicationLogin object using the PortletRenderRequest object.
    When the ApplicationLogin object is created it scans the cookie list in the request object for the exchangecookie which it then uses to populate the login details and sets the logged-in flag to true, if it can't find the cookie it assumes the caller is not logged in and sets the logged-in flag to false.
    The first time the ExchangeProvider.process method is called there are two cookies in the list (an exchangecookie and a JServSessionIdroot cookie) which is fine because it sets up the users details as expected, the second time it gets called (when you refresh the page) the exchangecookie has disappeared from the request object, so it leaves the ApplicationLogin object in the logged-in = false state, which inturn means the page does not get rendered.
    Does anyone know when the exchangecookie gets created and when it gets passed around? This would help in tracking down the error, or better still does anyone know how to fix this problem?
    Any help would be greatly appreciated.
    DJ
    P.S. There is a known problem in Oracle Financials and Application Server with cookies and IE, but this problem occurs in IE and NS so it does not appear to be browser dependent.
    null

    If I comment out caching and set login to "always" the portlets take 2-5 minutes to render, which is not acceptable for deployment.
    Can anybody fix the JPDK or the portlets?
    John
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Amr El Magayry ([email protected]):
    Alan ,
    Comment the code that do caching in the begining of each renderShow method in each of the four renderer classes (e.g. InboxRenderer,CalendarRenderer, ...), together with login freqeuncy set to 'Always', it will work.
    Pls Send me your code to fix the Ok & Apply buttons in the Customize page.
    Amr<HR></BLOCKQUOTE>
    null

  • Passing parameters between portlets (PL/SQL PDK)

    I'm new to the PDK, so forgive me if this is a dumb question. I need to develop a portal page containing a single search portlet, and then many other associated portlets which bring back various bits of data based on the result of the search.
    Is it possible to drive the content of other portlets on the same page by passing values from one to another and refreshing the whole page?
    null

    Neil,
    You can definitely pass parameters from one portlet to another in PL/SQL and we actually have a sample that you can take a look at. In the PDK, download the Parameter passing and CSS Example Provider sample. http://technet.oracle.com/products/iportal/files/pdkjan/index.html
    Click on PL/SQL
    One of the portlets demonstrates how to pass parameters to one portlet or all portlets on a page.
    Hope this helps,
    Sue

  • Passing parameters to portlets

    I have two reports that are each based on the same three
    parameters. What I would like to do is base a from on three
    LOV's that conatain all the values that can be passed. (They are
    plant, grade and gauge). First should I use the lov's to
    populate a temp table and then pass those values or is there
    another way. And secondly after I have the values how do I pass
    them. I have an idea that on the driving form I can put 'GET
    REPORTS' link that will refresh the page with the parameters
    forcing the portlets to refresh but have no idea how to do it.

    Go to Ken Atkins site at
    http://www.arrowsent.com/oratip/frames.htm
    and select the "White Paper" link.
    Select "Advanced Development Techniques for Oracle Portal
    Components". Download this Power Point presentation.
    You will find an excellent description, and working code
    listing, on how to work with Session variables.
    He describes two stored procedures select_new_dept and
    current_deptno in detail. If you follow his examples you
    shouldn't have any problem creating the sored procedures for
    saving and restoring an LOV value to/from a session
    storage variables. The select_new_dept function will save the
    current values to Session Storage and the current_deptno
    function can be used to retreive the LOV value.
    What I did was add a button to the Form and add code to save the
    LOV values.
    In your report you can then used something like
    select empname
    from scott.emp
    where empno = my_pkg.current_empno('bldgform','bldg')
    and .... = my_pkg.current_mgr('bldgform','bldg')
    and
    and
    Hope this helps.
    Larry

  • Portlet event link to pass parameter between portlets

    Ok list, I followed the documentation Adding Parameters and Events to Portlets
    PDK Release 2 (9.0.2 and later) and tried to make a portlet that pass parameter to another portlet using event link. I created the supposed parameter in the page and made the correct association to the receiving parameter portlet. The case is: The parameter is not caught in the receiving parameter page.
    This is my event link jsp code:
    <%
    String sImgPath = PropertiesReader.getProperty(PropertiesReader.KEY_IMAGES_PATH);
    PortletRenderRequest portletRequest = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    // The portlet definition in provider.xml includes the following:
    // - Event "submit" with event parameters "funcionalidade"
    String eventSubmit = EventUtils.eventName("submit");
    String eventParamFuncionalidade = EventUtils.eventParameter("funcionalidade");
    // Build up the list of parameters for the "submit" event
    NameValuePair[] eventSubmitParams = new NameValuePair[2];
    // Give the 'funcionalidade' event parameter the constant value 'chat'
    eventSubmitParams[0] = new NameValuePair(eventParamFuncionalidade, "chat");
    // The event name must be passed as a parameter on the URL
    eventSubmitParams[1] = new NameValuePair(eventSubmit, "");
    %>
    <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0">
    <TR><TD><a href="<%=PortletRendererUtil.constructLink(portletRequest,   portletRequest.getRenderContext().getEventURL(), eventSubmitParams, true, true)%>"><IMG SRC="<%= sImgPath + "menuButChat.gif" %>" BORDER="0"></a></TD><TR>
    </TRABLE>
    And this is my receiving parameter jsp code:
    <%
    String sFuncionalidade = "";
    PortletRenderRequest portletRequest = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    // Get the portlet definition - needed to get the public portlet parameters
    PortletDefinition portlet = portletRequest.getPortletDefinition();
    // Get the public portlet parameters
    ParameterDefinition[] parameters = portlet.getInputParameters();
    // Display all values for each of the public portlet parameters
    for (int currParameter = 0; currParameter < parameters.length; currParameter++)
    String name = parameters[currParameter].getName();
    out.println(" <p>name = " + name + "</p> ");
    // Get the parameter values
    String[] values = portletRequest.getParameterValues(name);
    // Display the parameter's values.
    if ( values == null )
    // Null array indicates no values for this parameter.
    out.println(" <p>values i null</p> ");
    else
    out.println(" values nco i null ");
    // Loop through each of the values and display non-null values on a separate line.
    for ( int j = 0; (values != null) && (j < values.length); j++ )
    sFuncionalidade = values[j];
    out.println(" <p>" + sFuncionalidade + "</p> ");
    %>
    And this is my portlet definition in provider.xml:
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>3</id>
    <name>MenuColaboracao</name>
    <title>Menu de Colaboragco</title>
    <shortTitle>Menu de Colaboragco</shortTitle>
    <description>Portlet de menu para funcionalidade de Comuicagco e Colaboragco.</description>
    <timeout>10000</timeout>
    <timeoutMessage>Portlet timed out</timeoutMessage>
    <showEdit>false</showEdit>
    <showEditDefault>false</showEditDefault>
    <showPreview>false</showPreview>
    <showDetails>false</showDetails>
    <hasHelp>false</hasHelp>
    <hasAbout>false</hasAbout>
    <acceptContentType>text/html</acceptContentType>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <renderContainer>false</renderContainer>
    <contentType>text/html</contentType>
    <showPage>/menuColaboracao.jsp</showPage>
    <pageParameterName>next_page</pageParameterName>
    </renderer>
         <event class="oracle.portal.provider.v2.DefaultEventDefinition">
         <name>submit</name>
    <description>Use this event to submit the form data to a page</description>
    <parameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
    <name>funcionalidade</name>
    <displayName>funcionalidade</displayName>
    <description>Parbmetro que indica a funcionalidade a ser apresentada.</description>
    </parameter>
    </event>
    </portlet>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>4</id>
    <name>HomeController</name>
    <title>Home Controller</title>
    <shortTitle>Home Controller</shortTitle>
    <description>Portlet que controla a exibigco do jsp correspondente a opgco de menu selecionada.</description>
    <timeout>10000</timeout>
    <timeoutMessage>Portlet timed out</timeoutMessage>
    <showEdit>false</showEdit>
    <showEditDefault>false</showEditDefault>
    <showPreview>false</showPreview>
    <showDetails>false</showDetails>
    <hasHelp>false</hasHelp>
    <hasAbout>false</hasAbout>
    <acceptContentType>text/html</acceptContentType>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <renderContainer>false</renderContainer>
    <contentType>text/html</contentType>
    <showPage>/homeController.jsp</showPage>
    <pageParameterName>next_page</pageParameterName>
    </renderer>
         <inputParameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
         <name>funcionalidade</name>
    <displayName>funcionalidade</displayName>
    <description>Parbmetro que indica a funcionalidade a ser apresentada.</description>
    </inputParameter>
    </portlet>
    Where do I miss ???
    Any help will be appreciated.
    Regards,
    Leandro.

    Leandro,
    Few things which you might want to cross check to see if we are
    on the right track :
    1. Page containing Parameter receiving portlet contains a
    paga parameter mapped on to its public parameter.
    As per your example, parameter receiving page should have a page
    parameter with name - "funcionalidade" - and portlet's corresponding
    parmeter should be mapped to this page parameter. This can be
    done through "Parameters" tab in the Page Properties screen.
    2. Page containing Parameter passing portlet contains proper event
    mapping.
    As per your example, we have an event called "submit". We should
    be able to see "submit" event under "MenuColaboracao" portlet.
    When this event is raised, select which page should receive the event
    data. As soon as a page is selected, this page's public parameters
    are displayed below. Beside that we must be able to see a choice box
    which displays four choices one of which would be "Event Output".
    Map this output to the event parameter.
    Hope it helps.
    -AMJAD.

  • Pass Parameter between Portlets

    I have two reports, one each in their own portlet. Portlet(A) is a summary, Portlet B is the container for the report detail.
    I need to know how to create a link and pass a variable from portlet A to portlet B.
    1. Can this be done?
    2. How?
    3. Is a wizard available to configure this?
    Thank You.

    Thanks Jerry
    I've tried out your code and it works, though amongst other things I had to change the pageid of 117 to my specific pageid. This means the report processing is specific to the page I create it for.
    I'm glad to see you've now included the idea of accessing l_arg_names and l_arg_values via pl/sql code maintained in the wizard. This is much better than modifying generated code.
    The piece of code to generate the full argument name
    p_reference_path| |'.dept', wwv_30898.wwv_standard_util.string_to_table2(nvl(get_value('dept'), 10))will be useful though I've had no problems yet with my technique of just ignoring the reference path components of the argument name.
    My current technique is to create a form on a dummy procedure and process some pl/sql on the submit button:
    args.store_arg_in_session('session_ppn',
    p_session.get_value_as_varchar2(
    p_block_name => p_block_name,
    p_attribute_name => 'A_P_DUMMY'
    ));Once I've stored a value in "session_ppn" I can access that value in any report I like with code like this
    args.set_arg_if_null
    (l_arg_names,l_arg_values,'ppn',
    nvl(args.get_arg_in_session
    ('session_ppn'),'unknown'));In this case ppn is a bind variable in the sql statment.
    Then, the report will access the session variable wherever you run it, regardless of what page you put it on etc.
    I've tried similar techniques with forms but I can't get the form to re-access the session variable when the latter changes its value.
    However the ability to set and get session variables and access them in reports is very good. It greatly reduces the amount of keying required by users. Portal would be much less useful to me without it.
    I must admit I'm very impressed with Portal and with the support for it via this discussion.
    null

  • Passing Parameters between Portlets or pages

    Hi,
    How can we pass the data from a Portlet in one page to another Portlet in a different Page??
    Requirement: I want a portlet which should take some parameters(basically a form),On submit should process the parameters and should forward the result to a Portlet in another page.
    Regards
    Yash

    Yash,
    You could use session variables to save information that can be used during the browser session. Example would be the form asks a user for their nickname. The user types in his nickname and hits the submit button. The form will then save the info in a session variable. Then any other portlet can open that session variable and get the info and use that info. Now if the browser is closed, the info in the session variable is lost. Check out this link:
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/PLSQL/DOC/PLDOC_9026/wwsto_api_session.html

  • Passing parameters between portlets with in the same page

    Hello,
    I have created a Form and a report. The form allows a user to make some selection values, and then upon submit it passes the selected values to the report to query the database. The results from the query are displayed in a new - seperate - window from the form. Is there anyway to disaply the report results on the same page as the form that called the report? I guess I am trying to have a page with 2 portlets (a form, and a report). I want the user to be able to make a selection from the form portlet and pass that selection to the report portlet within the same page.
    Thanks,
    McKell

    Hi I received this info from an OSS named Mahantesh. I thought it was very helpful information for passing portlet parameters between a form and a report within the same page.
    Please check these steps to pass parameter from form to report:
    This article is based on demo tables EMP and DEPT.
    1. Create a report RPT_DEPT using the query 'Select * from dept where deptno= :deptno'
    2. Create a form FRM_EMP based on EMP table.
    3. Edit the form FRM_EMP => 'Formatting and Validation Options' section => click on DEPTNO field
    => Give the value for the 'Link' (under 'Display options') as 'javascript:runrep()' where runrep is the name<br>
    of javascript function that we are going to create later.
    4. In 'Form text' section, in the 'Footer Text' add the code for the runrep function as follows.
    <script>
    function runrep()
    var formObj = document.forms[0];
    var deptno;
    for (var i=0; i < formObj.length ; i++){
    if (formObj.elements.name == 'FORM_EMP.DEFAULT.DEPTNO.01'){
    //FORM_EMP is the form name
    deptno = formObj.elements[i].value;
    break;
    var url="/portal/page?_pageid=38,1,38_31678:38_31787&_dad=portal&_schema=<br>
    PORTAL&deptno=" + deptno;
    //modify the url according to your environment.<br>
    window.location=url;
    }<br>
    </script>
    5. Modify the URL in the above code with your page url on which form and report portlets have been placed.
    6. Goto Page properties => Parameters tab (Parameters and Events option should have been enabled at Pagegroup level).
    7. Create a page parameter and map it with report portlet parameter.
    8. Now run the page, enter deptno or query the form to get the deptno and click on the link next to deptno field. You should get report with corresponding deptno on the page.

  • Passing Data between portlets

    Hi,
    How can we pass the data from a Portlet in one page to another Portlet in a different Page??
    Requirement: I want a portlet which should take some parameters(basically a form),On submit should process the parameters and should forward the result to a Portlet in another page.
    Regards
    Yash

    Thanks Abhinav,
    I went through the eventform.jsp present in the JPDK.ear.I was able to run the same,But I still have some problems accesing the values that were passed.
    1. How to get the information in the second portlet when the form is submitted to other page.
    I checked whether data is being passed from one page to another by setting method="Get".The data is getting passed to the other Page.But I am not able to use the values in the Portlet. I tried using request.getParameter("parameter") in Portlet2,but it is not working.
    2. In the page properties of page 1, I set the SUBMIT event to get the same page back,this too is not working,it is directly taking me to Page2 when I click the SUBMIT button.How to specify it other than using page properties ->events
    3.I want to know where the information regarding the Pages are stored.
    Regards
    Yash

  • Passing parameters between portlets

    Hi , I have a page with two portlets : one , done with the wizard , is a form , the other one is another form , but is done with a JSP.
    My trouble is that with the second form , the one done with a JSP , I must insert into the database two values , one retrieved by the jsp itself , and the other one is a value of one field of the other form.
    My question is how can I get , from my jsp , that value coming from the other portlet ???
    Thanks
    max

    Hi,
    You can redirect to another page and pass parameters to it. For this, you need to know the pageid to which you have to redirect. Assign form action to
    http://machine:port/servlet/page
    PageServlet requires few other parameters (form fields) to redirect the control to the required page.
    You can get them by making a call to
    HttpPortletRendererUtil.htmlFormHiddenFields(pr,PortletRendererUtil.PAGE_LINK)
    This returns a string similar to the following.
    <INPUT TYPE="hidden" name="_pageid" value="54" />
    <INPUT TYPE="hidden" name="_dad" value="portal30" />
    <INPUT TYPE="hidden" name="_schema" value="PORTAL30" />
    Parse it for _pageid and change the value to the page you want to redirect. Print these contents inside your form. Once you submit the form, it'll redirect the control to the page you want with the parameters.
    --Sriram

Maybe you are looking for

  • How do I use an external monitor on my MacBook. v.NoLCD

    I have a MacBook with no LCD (was removed) but when I hook an external up to install an OS on, all I get is the Leopard default background. I can't figure out how to make the external the primary.

  • Power Mac G4 having video problems -green dots and pixelated lines

    Yesterday my Power Mac G4 running OS X (10.5.1) started having unusual video problems. I started to notice green dots on the screen where the mouse pointer had been or where application windows had recently been. The severity of the video symptoms se

  • Reading Camera raw progress

    I have two computers - 1 a MAcBook Pro running CS5, the other a PC on Windows 7 running CS4.  IN BOTH CASES I am having trouble processing Raw photogrpahs, once they have been touched once, the first time I opena file it seems OK.  What happens is a

  • PI 7.1 : File to JMS Scenario Help.

    Hello Experts, We are trying to implement a scenario where in we want to send the data in the file as it is to the JMS adapter in 7.1 because the data is already in expected format. The file is generated by SAP. The format of the data is: EDI_DC40  2

  • RemoteExceptions instead of SQLExceptions

    Hi All           i am using weblogic 4.5.1 .We use Jsp - > Servlet ->Session Bean           ->entitybean combination.We have a problem with Unique Key Constraint .           If the unique key is voilated an SQLException is thrown which is caught