Hi, When you are using Turbine, there's only one servlet and that is Turbine -- it is the controller. So getRealPath() is indeed what you want. Maybe I don't get what you're saying...so plz elaborate if that's not right.
Regards, Daniel On Fri, 6 Feb 2004, Gerry Duprey wrote: > Howdy, > > I'm writing a service (extension of TurbineBaseService) that needs to > "translate" a relative path to a file into a real one. The Turbine servilet > has a static method (getRealPath()) that works. > > However, if I have multiple servlets running, each running Turbine, but > entirely seperate, how can I use the getRealPath() particular to each one of them? > > I don't seem to be able to get access to the current servlets context or an > instance of Turbine from within the initialization classes of a > TurbineBaseService class. > > Is there some way to get to the per-servlet context from within the > initialization of a TurbineBaseService (it uses earlyInit=true, if that matters)? > > Thanks! > > Gerry > > -- > Gerry Duprey > ________________________________________ > SchoolsOPEN, LLC > 123 North Ashley, Suite 120 > Ann Arbor, MI 48104 > Phone (877) 483-1944 Ext. 401 > Fax (734) 661-0819 > > Visit us Online at www.Schools-OPEN.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
