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

Transfer of data between iviews

Hi All,

I've written two components, one with a series of links and a load of data, the other that does a file download.

The user clicks a link in the first component and the second component is run in a new window. A large amount of data must be passed from the first component over to the second so that it can be downloaded.

I've tried to use the getComponentSession methods to store and retrieve the data but i just get null in the second component.

My code is below. Does anyone know what I am doing wrong.

First component (JSP Dynpage) ( The doProcessBeforeOutput())

IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();

request.getComponentSession().putValue("ponumber", "4500001");

Second component (Abstract portal component)

protected void doOnNodeReady(IPortalComponentRequest request, IEvent event){

String file = (String) request.getComponentSession().getValue("ponumber");

if(file == null){

file = "Its null";




Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Best Answer
    Posted on Aug 09, 2004 at 11:15 AM

    I think that this is because the request object is different between the two iViews. You might be able to try using the session object instead, as this should be shared between the two iViews

    I hope this helps


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Detlev Beutner

      Hi Detlev,

      Thanks for the answer. This was the last piece in the jigsaw. My data now transfers fine and downloads as an XML file.

      Thanks again. I'll award the points as soon as the reward system is fixed.