It is in fact a method of Action. It's both in 1.1 and 1.2.0. Hubert
--- Frank Zammetti <[EMAIL PROTECTED]> wrote: > What is getServlet() a method of though? I didn't see it in Action, but I > could have missed it. > > I've done as was suggested via Session, works fine. I would in fact prefer > > to not go through session if possible though... > > Frank > > > >From: Hubert Rabago <[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 07:45:00 -0700 (PDT) > > > >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] > > > > _________________________________________________________________ > Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! > > http://join.msn.click-url.com/go/onm00200362ave/direct/01/ > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ 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]