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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>