struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wes Wannemacher <w...@wantii.com>
Subject getting the container (or Configuration/ConfigurationManager) in a non-container-instantiated object
Date Thu, 10 Feb 2011 16:43:19 GMT
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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message