portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Boss" <baron.muenhau...@googlemail.com>
Subject Re: Session problem
Date Mon, 28 Aug 2006 19:20:36 GMT
Hallo Martin, Hallo Ate,

Many thanks for the help! :)
It works :))

2006/8/27, Martin Dulisch <mdulisch@gmail.com>:
> Hi Michael,
>
> you call setAttribute with Portlet_scope attribute. You should set the
> attribute also in application_scope. May be this solves the problem.
>
> Martin
>
>
> 2006/8/27, Michael Boss <baron.muenhausen@googlemail.com>:
> > Hi All,
> >
> > I have two Portlets. One transfers data to another. For example I
> > transfer attribute "name":
> >
> > PortletSession session = request.getPortletSession();
> > String name = "TestName";
> > session.setAttribute("mf_name", name,PortletSession.PORTLET_SCOPE);
> >
> > And another portlet receives this attribute:
> >
> > PortletSession session = request.getPortletSession();
> > String name = (String) session.getAttribute("mf_name",
> > PortletSession.APPLICATION_SCOPE);
> > System.out.println("Name: "+name); Here I receive null (name=null).
> >
> > What is wrong? What I do incorrectly?
> >
> > Many thanks
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
> > For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message