cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Luzyanin <i...@ProZa.Lviv.UA>
Subject Re: sessions in cocoon
Date Wed, 29 May 2002 14:20:31 GMT
On Срд, 2002-05-29 at 17:05, Atul Gulve wrote:
> If you want to access session object then you should do it following way in 
> cocoon.
> 
> In your xsp file you can access the session.
> <xsp:logic>
> org.apache.cocoon.environment.http.HttpSession session = 
> (org.apache.cocoon.environment.http.HttpSession)request.getSession();
> 
> Object foo = session.getAttribute("foobar");
> .
> .
> .
> .
> </xsp:logic>

Actually is no need to get session object from request object. Session
object is ready to use from XSP's by using "session" variable.

<xsp:page ...>
<doc>
<xsp:logic>
	Object foo = session.getAttribute("foobar");
</xsp:logic>
</doc>
</xsp:page>

Ivan.


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message