> > Is there webwork example for such factory actions? > > What are you using the factory for? Sounds like the > dispatcher to me.
I need a application-global object. Original version was: ---%<--------- public static getFoo(HttpSession bar) { Foo foo = bar.getValue(FOO_KEY); if(foo == null) { foo = new Foo(); bar.put(FOO_KEY,foo); } return foo; } ---%<------------- Then i was in need to perform the same from action - so I modified this method to luse Map instead of session and added another static method which just feeds first one with ActionContext.getSession() Shall I use [say ] GenerixcDispatcher to initialize ActionContext ? regards, ===== Konstantin Priblouda ( ko5tik ) Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork