Yes, modules. My widget module should init with servletContextPath. Sure, I can get it by using @Providers mechanism or so. But it's not clear to the module: 'when the sc is provided', or 'what if the sc is null by that time?'
Rex On Feb 27, 6:40 am, "Dhanji R. Prasanna" <[email protected]> wrote: > Hmm.. The ServletContext is accessible from @Inject anywhere--does this > solve your problem? Or do you require it inside the module? > Dhanji. > > > > On Fri, Feb 27, 2009 at 2:06 AM, Rex Sheng <[email protected]> wrote: > > > Hi, Dhanji, > > > How getInjector() get to know about the servletContext, when sometime > > we measure relative paths at that point? > > > So, in my projects, I replaced it with getInjector(ServletContext sc). > > > Is this right? > > > Thanks, > > > Rex --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-guice?hl=en -~----------~----~----~----~------~----~------~--~---
