cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Crine <cr...@4dconcept.fr>
Subject Re: Getting session object inside a custom generator
Date Wed, 18 Jun 2003 11:03:38 GMT
yes.

Use the ObjectModelhelper object in the setup method.

for example
    //Get the session parameter id
     Request request = ObjectModelHelper.getRequest(objectModel);
     Session session = request.getSession(false);
         // requete
     String id = (String)session.getAttribute("id");


Lionel


At 11:17 18/06/2003 +0100, you wrote:
>Hey All,
>
>I was just wondering if it is possible to get access to a users session 
>object from within a custom generator?
>
>Thanks
>
>Brian Dela


---------------------------------------------------------------------
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