Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 51740 invoked from network); 17 May 2007 08:50:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 May 2007 08:50:15 -0000 Received: (qmail 19503 invoked by uid 500); 17 May 2007 08:50:11 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 18504 invoked by uid 500); 17 May 2007 08:50:09 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 18493 invoked by uid 99); 17 May 2007 08:50:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2007 01:50:09 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jak-struts-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2007 01:50:01 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Hobfq-0007yK-3R for user@struts.apache.org; Thu, 17 May 2007 10:49:26 +0200 Received: from cpe0016b5ef7ea1-cm0014e88ef4b4.cpe.net.cable.rogers.com ([74.99.167.14]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 May 2007 10:49:26 +0200 Received: from laurie by cpe0016b5ef7ea1-cm0014e88ef4b4.cpe.net.cable.rogers.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 May 2007 10:49:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: user@struts.apache.org From: Laurie Harper Subject: Re: Date: Thu, 17 May 2007 04:49:13 -0400 Lines: 32 Message-ID: References: <900412.32280.qm@web56713.mail.re3.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cpe0016b5ef7ea1-cm0014e88ef4b4.cpe.net.cable.rogers.com User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) In-Reply-To: <900412.32280.qm@web56713.mail.re3.yahoo.com> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Dave Newton wrote: > --- stanlick@gmail.com wrote: >> Say, if I want to display an item's value from the >> map, what is the syntax? >> I tried this, but obviously this was too intuitive. >> > > That's what I do. With names changed to protect the > innocent, here's one of my textfields: > > name="exDataMap[%{#result.id}].%{which}[0].foo"/> > > Each map entry is a collection of objects with a foo > property. The %{which} is because each map entry has a > few different properties that I need to display based > on a request parameter. #result is a set variable > hence the # to distinquish it from the stack's root. > It's a reasonably complex data structure I'm dealing > with, but so far I haven't had any issues, including > dynamically generating additional rows via JavaScript. Based on that little example, I nominate Dave as author of the Advanced Guide to OGNL ;-) That said, stanlick, what you wrote should do exactly what you were probably expecting. If not, post what you expected vs. what you got and any relevant supporting details (what someMap is, what someKey is, etc.). '...this was too intuitive...' isn't a very descriptive problem report ;-) [assuming it even was one!] L. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org