Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 20325 invoked from network); 15 Apr 2003 03:37:06 -0000 Received: from mailman.proroom.net (64.213.198.199) by daedalus.apache.org with SMTP; 15 Apr 2003 03:37:06 -0000 Received: (qmail 14703 invoked from network); 15 Apr 2003 03:37:15 -0000 Received: from ip68-107-141-233.tc.ph.cox.net (HELO ?192.168.1.4?) (68.107.141.233) by mailman.proroom.net with SMTP; 15 Apr 2003 03:37:15 -0000 User-Agent: Microsoft-Entourage/10.1.0.2006 Date: Mon, 14 Apr 2003 20:37:10 -0700 Subject: Re: [jelly] a bug? or am I missing something From: Warner Onstine To: Jakarta Commons Users List Message-ID: In-Reply-To: <3E9B7973.2090207@walding.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Ugg, no kidding. Can you think of any other way to loop through selection of xml nodes? -warner On 4/14/03 8:16 PM, "Ben Walding" wrote: > This is a pecularity of jexl I believe. > > "size" is some kind of reserved word in the parser. > > I posted last week having the same kind of problem > > Solution? > > The ugly way it to have a wrapper bean > > $bean.syze($table) > > but that is so ugly it makes me want to choke myself to death with a > rotting couch cover. > > > Warner Onstine wrote: > >> Ok, I'm basically trying to duplicate some stuff from xsl land here and am >> having some serious problems. >> >> Here's my jelly snippet: >> >> >> > items="${tables}" trim="no"> >> >> > select="$currentTable/@className"/> >> > readOnly="true" template="classes/peer.vm"/> >> > readOnly="true" template="classes/base.vm"/> >> >> >> Now, here's the problem I am running into: >> 55 [main] ERROR parser.XMLParser - Caught exception: >> org.apache.commons.jelly.JellyException: null:-1:-1: Encountered ". >> size" at line 1, column 7. >> Was expecting one of: >> ------------ >> Now, through all the examples I've read this should work. $tables is an >> ArrayList and has the method size(). >> >> Any reason why this isn't working? >> >> -warner >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: commons-user-help@jakarta.apache.org >> >> >> >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > >