Skip to Content
author's profile photo Former Member
Former Member

sharing data in the portal

Hi,

I want to share data between several iView (not all are in the same page). I think of using the HttpSession but the putValue and the getValue methods are deprecated.

please advise,

Thanks, Nir Marcu.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 17, 2004 at 08:32 AM

    You can use getAttribute, setAttribute methods

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 25, 2004 at 10:04 AM

    use the getComponentSession() method from the IPortalComponentRequest object.

    you should avoid working with HttpSession (or HttpRequest) directly. There are objects specifically created for the portal that act the same way.

    And in the IPortalComponentSession object, you will find the putValue() method !

    Regards,

    xavier

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Yes, or use the HTTPSession (which you can get from the IPortalComponentSession). The HTTPSession has the same namespace for all portal components (therefore make sure you use distinct names, f.ex. com.company.portal.component.key).

      Xavier: Do you now the persistence level of the client databag ? Can it be cleared by the SAP J2EE engine if it needs the memory ?

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2004 at 04:56 PM

    Remember that the different session object store the values once for every user.

    If the value is the same for all users you should consider creating a service which stores the information.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.