AW: Getting session object inside a custom generator

2003-06-18 Thread Jörn Heid
Title: Nachricht


public 
void generate () throws SAXException 
{Sessionsession = ObjectModelHelper.getRequest (objectModel).getSession(true);


  
  -Urspr√ľngliche Nachricht-Von: Brian Delahunty 
  [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 18. Juni 2003 
  12:18An: [EMAIL PROTECTED]Betreff: Getting 
  session object inside a custom generator
  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


Re: Getting session object inside a custom generator

2003-06-18 Thread Lionel Crine
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]