Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 61563 invoked by uid 500); 21 Dec 2001 18:33:09 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 61551 invoked from network); 21 Dec 2001 18:33:09 -0000 Date: Fri, 21 Dec 2001 11:28:18 -0700 (Mountain Standard Time) From: Michael McKibben To: Subject: Re: How do I add objects to the objectModel Map Message-ID: X-X-Sender: mmckibben@moab.ncube.com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This feature is for exporting objects already in the Cocoon object map to the Velocity template context. So they must already exist. But let's say you knew that, then in your sitemap, here is how you would make some object named "myBusinessObject" in the cocoon object map available to your velocity template as "$myBusinessObject": (in your sitemap.xmap) ... ... Hope this helps! --mike On Tue, 18 Dec 2001 david.greaves@idl-bt.com wrote: > Hi > > I hope this is straightforward... > > How do I add objects to the objectModel Map? > > http://xml.apache.org/cocoon/userdocs/generators/velocity-generator.html > says: > (optional; > 0..n) - Export the object specified by key from the Cocoon object map to the > Velocity context of the template. The object can be accessed from the > template as name. Be careful to use a valid VTL variable name. > > I've looked through the code but can't figure this one out. > > David > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: cocoon-dev-help@xml.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org