You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Mato Mira, Fernando" <Fe...@dialog.com> on 2003/05/22 16:18:48 UTC

Java objects as session attribute values?

Hello,

  I am trying to use XSP. There's no way to store a Java object in the
session?

Thanks

--
Fernando D. Mato Mira       matomira@acm.org         

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


Re: Java objects as session attribute values?

Posted by Boon Hian Tek <bt...@bhtek.dyndns.org>.
Mato Mira, Fernando wrote:
> Hello,
> 
>   I am trying to use XSP. There's no way to store a Java object in the
> session?
> 
> Thanks
> 
> --
> Fernando D. Mato Mira       matomira@acm.org         
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
I do store them. Not sure if it is the right way.

I do it this way.

<xsp:logic>
request.getSession(true).setAttribute(myObject);
</xsp:logic>

Boon

-- 
This unit... must... survive.


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