public void init(ServletConfig config) {
ServletContext application = servletConfig.getServletContext();
ComponentManager container = (ComponentManager)application.getAttribute("DefaultComponentManager");
MyObject foo = new MyObject(); container.initializeObject(foo); }
Erik Hatcher wrote:
On Tuesday, July 1, 2003, at 11:07 PM, Jason Carreira wrote:
Did you put the Interceptor in your interceptor stack to set up the components? It looks like this:
<interceptor name="component" class="com.opensymphony.xwork.interceptor.component.ComponentIntercepto r "/>
doh! sorry for the boneheaded mistake on that one.
yup, that works just fine.
Now my question is: how do I instantiate my AppConfig object and initialize it? Instantiation seems to be taken care of indirectly through ApplicationLifecycleListener, which is fine. But what about getting access to it from my init. servlet? Hopefully I'll have the answer to this myself in a few minutes, but it can't hurt to ask too :)
Erik
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork