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 15:41:26 GMT
It is in fact a method of Action.  It's both in 1.1 and 1.2.0.  

Hubert

--- Frank Zammetti <fzammett@hotmail.com> 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 <jakartauser@yahoo.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 07:45:00 -0700 (PDT)
> >
> >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
> >
> 
> _________________________________________________________________
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 



	
		
__________________________________
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