Thanks, for your help.  I understand the scoping differences, even
passing application scope to the getAttribute method doesn't make a
difference.  Here is my scenario:

Set an attribute in a servlet using HttpSession.
Get the attribute in a portlet using PortletSession calling getAttribute
(I tried with and without scope parameter).  The value is null.  Use
getAttributeNames to get an enumeration of names (using application
scope) and the attribute I set in the servlet is not there.

Is this possible with jetspeed?

Thanks,
Brice

On Thu, 2006-09-21 at 18:41 +0200, Jacek Wiślicki wrote:
> Wiadomosc od Brice Lambi z 2006-09-21 18:29 brzmiala:
> 
> >     I would like to set a session variable in a servlet and retrieve it in
> > a portlet.  Both are in the same application, but it doesn't appear to
> > work.  I've set an attribute using the HttpSession in a servlet, but the
> > attribute is null when I try to get it using the PortletSession.  I've
> > tried it the other way also, setting a variable in a portlet and trying
> > to retrieve it in a servlet.  That also does not work.  Is there any way
> > to accomplish this?
> Be sure you use PortletSession.APPLICATION_SCOPE, not 
> PortletSession.PORTLET_SCOPE (this is a default for the second method 
> argument).
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to