Geoff Howard wrote: > > [EMAIL PROTECTED] wrote: > > > ghoward 2003/10/22 18:45:34 > > > > Modified: src/webapp/samples/sources sitemap.xmap samples.xml > > src/webapp/WEB-INF cocoon.xconf > > Added: src/webapp/samples/sources/content upload.xml > > src/java/org/apache/cocoon/components/source/impl > > PartSource.java PartSourceFactory.java > > Log: > > Add new multipart file upload Part Source contributed by > > Paul Crabtree with samples. "Fixes" bug > > > > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23931 > > ... > > > 1.1 > cocoon-2.1/src/java/org/apache/cocoon/components/source/impl/PartS > ource.java > > ... > > > // get the object model from the component managers > curr env. > > Map objectModel = > CocoonComponentManager.getCurrentEnvironment().getObjectModel(); > > 1) Is this really the right way to do it in 2.1? No :)
If you need access to the objectModel use the Contextualizable interface. We have a ContextHelper class that fetches you the object model out of the Context you get via contextualize. > 2) I know Carsten (Berin?) just overhauled the Environment handling in > 2.2 - what's the right way to do this there? The same as I mentioned above. The way using the CocoonComponentManager is not available in 2.2 anymore. Carsten
