Try calling getServletContext(). But I think you have to set CrossContext to 'true' in the Context element of Server.xml
_____________________________________ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -----Original Message----- From: Antony [mailto:[EMAIL PROTECTED] Sent: June 27, 2003 5:18 AM To: tomcat mail list Subject: Help. how to get ServletContext ? Hi, I have a class which implements HttpSessionBindingListener interface. The class is put in the session scope. I have to get the ServletContext from inside this class. How to get it ?. I don't know much about servlets and Java. Antony --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]