There's also getServlet().getServletContext() in case you don't want to go through the HttpSession object.
--- Frank Zammetti <[EMAIL PROTECTED]> wrote: > Ah! I knew it would be an obvious answer I didn't see. Thank you! > > Frank > > > >From: [EMAIL PROTECTED] > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >Subject: Re: ServletContext in Action > >Date: Tue, 8 Jun 2004 10:39:20 -0400 > > > >request.getSession().getServletContext(); > > > > > > > > > >"Frank Zammetti" <[EMAIL PROTECTED]> > >06/08/2004 10:36 AM > >Please respond to > >"Struts Users Mailing List" <[EMAIL PROTECTED]> > > > > > >To > >[EMAIL PROTECTED] > >cc > > > >Subject > >ServletContext in Action > > > > > > > > > > > > > >Can anyone see how to get access to the current ServletContext object from > > > >within an Action? I might be missing something obvious, but I don't see a > > > >way to do it. Specifically I need to get the real filesystem path to my > >WEB-INF folder... I have code that does this already, but it requires the > >ServletContext. Is there another way that I'm not aware of? Thanks all! > > > >Frank > > > >_________________________________________________________________ > >Watch the online reality show Mixed Messages with a friend and enter to > >win > >a trip to NY > >http://www.msnmessenger-download.click-url.com/go/onm00200497ave/direct/01/ __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]