cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hildebrandt, Ole" <ole.hildebra...@eds.com>
Subject AW: AW: Retrieving session data from an action
Date Fri, 28 May 2004 09:15:29 GMT
Hi,

I think sscontext.getAttribute() could work.

Maybe you want to have a look at the API-docs:


http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/webapps/session/conte
xt/SimpleSessionContext.html


Kind Regards

Ole

> -----Urspr√ľngliche Nachricht-----
> Von: Bruce Perryman [mailto:bperryman_us@yahoo.com] 
> Gesendet: Donnerstag, 27. Mai 2004 19:05
> An: users@cocoon.apache.org
> Betreff: Re: AW: Retrieving session data from an action
> 
> 
> Thanks for responding.
> 
> getSession() returns a session whose getAttribute
> method returns an object of type SimpleSessionContext.
> 
> How would I access this object?
> 
> --- "Hildebrandt, Ole" <ole.hildebrandt@eds.com>
> wrote:
> > Hi,
> > 
> > Have you tried this within an acion?
> > 
> > Request request = ObjectModelHelper.getRequest(map);
> > Session sess = request.getSession()
> > 
> > Regards
> > 
> > Ole		
> > 
> > > -----Urspr√ľngliche Nachricht-----
> > > Von: Bruce Perryman
> > [mailto:bperryman_us@yahoo.com]
> > > Gesendet: Donnerstag, 27. Mai 2004 00:03
> > > An: cocoon
> > > Betreff: Retrieving session data from an action
> > > 
> > > 
> > > Hello,
> > > 
> > > I have stored session data inside of a context
> > using <session:setxml>.
> > > 
> > > How can I access the data either from within a
> > > sitemap, or within an action which I've written?
> > > 
> > > Which component or class can I use to retrieve
> > from
> > > within either the sitemap or the action that I
> > wrote?
> > > 
> > > Thanks
> > > 
> > > 
> > > 	
> > > 		
> > > __________________________________
> > > Do you Yahoo!?
> > > Friends.  Fun.  Try the all-new Yahoo! Messenger.
> > http://messenger.yahoo.com/
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail:
> > users-help@cocoon.apache.org
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail:
> > users-help@cocoon.apache.org
> > 
> 
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> Friends.  Fun.  Try the all-new Yahoo! Messenger. 
http://messenger.yahoo.com/ 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message