Discussion:
PicoWeb: Getting access to the PicoContainer outside of an Action
Daniel Wellman
2008-11-02 19:38:07 UTC
Permalink
Hello,

I'm going to be upgrading an application that uses WebWork 2.1.7 with
Pico/Nano 1.x to Struts 2 with Pico/PicoWeb 2.x. To do this upgrade, I'm
planning on first upgrading Pico/Nano and then WebWork 2.1.7 to Struts 2.

In my current application, we use Pico/Nano to instantiate WebWork actions,
but we also use it

1. to grab request-scoped components in a WebWork Interceptor class, and
2. to access any Pico components on the server-side of GWT remote services


Previously we would do this to get access to the container in interceptors
and GWT:

PicoContainer picoContainer = (PicoContainer) ((Map)
actionInvocation.getInvocationContext().get("request")).get("nanocontainer.request");

What's the preferred way to get access to Pico in 2.x?

Thanks!

Dan
--
View this message in context: http://www.nabble.com/PicoWeb%3A-Getting-access-to-the-PicoContainer-outside-of-an-Action-tp20293064p20293064.html
Sent from the NanoContainer - PicoContainer - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Loading...