Wes, to be frankly I didn't get what you said. Dispatcher.getInstance().getContainer() should be yield a container reference (among the other things it's the better way a know in order to do that).
What's the problem with the threadlocal stuff? On 10 February 2011 17:43, Wes Wannemacher <[email protected]> wrote: > Guys, > > I am in a non-struts environment (spring class, loaded by a customer > ServletContextListener), and I am trying to get my hands on the Struts > 2 configuration. I first tried to do - > > Dispatcher.getInstance().getContainer() > > But, the dispatcher instance is a threadlocal. I don't really care > about the dispatcher, I'd just like to get a ref to the container. > > Any ideas? > > -Wes > > -- > Wes Wannemacher > > Head Engineer, WanTii, Inc. > Need Training? Struts, Spring, Maven, Tomcat... > Ask me for a quote! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Maurizio Cucchiara --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
