Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 20514 invoked by uid 500); 18 May 2001 10:45:41 -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 20411 invoked from network); 18 May 2001 10:45:35 -0000 Message-ID: <20010518104534.62709.qmail@web12802.mail.yahoo.com> Date: Fri, 18 May 2001 03:45:34 -0700 (PDT) From: Davanum Srinivas Reply-To: dims@yahoo.com Subject: Re: Nesting actions inside of a resource. To: cocoon-dev@xml.apache.org In-Reply-To: <5.1.0.14.0.20010517164156.01fa2798@pop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Peter, Checked in. Please try it out. Thanks, dims --- Peter Royal wrote: > Currently you can't nest actions inside of a resource. The method call for > an action expects the objectModel as a parameter, but there is no variable > named objectModel inside of the method generated for a resource. Below is > the error I got and a stupidly simple patch to make it work. > Keep up the great work! > -peter > > org.apache.cocoon.ProcessingException: Language > Exception:org.apache.cocoon.components.language.LanguageException: Error > compiling sitemap_xmap: Line 0, column 0: > C:\java\tomcat\work\localhost_8080%2Fepace\org\apache\cocoon\www\accounting\bankaccounts\sitemap_xmap.java:226: > > Undefined variable: objectModel environment, objectModel, ^ > > > Index: sitemap.xsl > =================================================================== > RCS file: > /home/cvspublic/xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl,v > retrieving revision 1.2 > diff -r1.2 sitemap.xsl > 313a314 > > Map objectModel = environment.getObjectModel(); > > > -- > peter royal -> proyal@managingpartners.com > managing partners, inc. -> http://www.managingpartners.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: cocoon-dev-help@xml.apache.org > ===== Davanum Srinivas, JNI-FAQ Manager http://www.jGuru.com/faq/JNI __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org