That's easy: getServlet().getServletContext()
getServlet is in the Action class that you're extending... > -----Original Message----- > From: "rainer juenger" <[EMAIL PROTECTED]>@AFG > Sent: Monday, September 09, 2002 4:05 PM > To: Struts Users Mailing List > Subject: ServletContext in a Action > > Hi, > > how can I get values out of the ServletContext within a Action? > > such as: > ServletContext ctx = getServletConfig().getServletContext(); > String dbdriver = ctx.getAttribute(Constants.DBDRIVER); > > thanks rainer > >

