somehow a double posting. Please ignore! rainer
----- Original Message ----- From: "rainer juenger" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, September 09, 2002 4:25 PM Subject: ServletContext in a Bean Hi, how can I access the ServeltContext in a bean? Could you give me sample: e.g. import javax.servlet.*; // something like that, but getServletConfig() is of course not known in a normal bean. ServletContext ctx = getServletConfig().getServletContext(); String dbdriver = ctx.getAttribute(Constants.DBDRIVER); thanks for any help! Rainer -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
