struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hubert Rabago <jakartau...@yahoo.com>
Subject Re: ServletContext in Action
Date Tue, 08 Jun 2004 14:45:00 GMT
There's also getServlet().getServletContext() in case you don't want to go
through the HttpSession object.

--- Frank Zammetti <fzammett@hotmail.com> wrote:
> Ah!  I knew it would be an obvious answer I didn't see.  Thank you!
> 
> Frank
> 
> 
> >From: DGraham@EvergreenInvestments.com
> >Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
> >To: "Struts Users Mailing List" <user@struts.apache.org>
> >Subject: Re: ServletContext in Action
> >Date: Tue, 8 Jun 2004 10:39:20 -0400
> >
> >request.getSession().getServletContext();
> >
> >
> >
> >
> >"Frank Zammetti" <fzammett@hotmail.com>
> >06/08/2004 10:36 AM
> >Please respond to
> >"Struts Users Mailing List" <user@struts.apache.org>
> >
> >
> >To
> >user@struts.apache.org
> >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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message