You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Michael Bierenfeld <mi...@atmiralis.de> on 2000/07/28 12:32:38 UTC
Re: how to access built-in XSP objects from ?
Kaufman Ng wrote:
>
> Hi all,
>
> I want to access the session object that is available in XSP. But this is
> giving me compilation error in XSP.
>
> <xsp:logic>
> HttpSession sess = session;
> </xsp:logic>
>
> How come this doesn't work?
>
> If I refer the session built-in object with <xsp:expr> tags, it's fine.
> Does anyone know why?
>
> Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
Why not using the request Object.
eg. HttpSession session = request.getSession
(true);
Regards
Michael
RE: how to access built-in XSP objects from ?
Posted by Kaufman Ng <ka...@viant.com>.
Michael,
This wouldn't work either in my case cause my code wasn't in the <page> tag.
For details please refer to Robin Green's reply.
Cheers.
>
> Why not using the request Object.
>
> eg. HttpSession session = request.getSession
> (true);
>
> Regards
>
> Michael
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>