Help Evaluating Nested Maps
Bruce Perryman <[email protected]> Tue, 11 Jul 2006 18:41:22 -0700 (PDT)
| Newsgroups | gmane.comp.text.fmpp |
|---|---|
| Message-ID | <[email protected]> |
--===============1315971058==
Content-Type: multipart/alternative; boundary="0-1152298056-1152668482=:9054"
Content-Transfer-Encoding: 7bit
--0-1152298056-1152668482=:9054
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
OK,
I'm doing something wrong, again.
This is the structure of my maps:
ABC
||
=3D>DEF
||
=3D>GHI
||
=3D>A1=3Da
=3D>A2=3Db
=3D>A3=3Dc
=3D>GHI2
||
=3D>B1=3Dd
=3D>B2=3De
=3D>B3=3Df
Hopefully this description makes sense to you. ABC contains a map DEF an=
d DEF contains a few maps, two of which are GHI, and GHI2.
I am trying to evaluate A1 at the GHI level. This I do as follows:
${ABC.DEF.GHI.A1}
This results in the error that A1 is undefined. If I evaluate ${ABC.DEF.G=
HI} the error is that a string, etc. is expected but the expression evalu=
ates to a simple hash.
Can you please point me in the right direction? Ultimately, I want to be =
able to use a variable to represent the GHI level with something like:
${ABC.DEF[x].A1}
But I thought I'd work with the 'simple' case first.
Thanks in advance for your help.
=09
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ co=
untries) for 2=A2/min or less.
--0-1152298056-1152668482=:9054
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
OK,<br><br>I'm doing something wrong, again.<br><br>This is the struct=
ure of my maps:<br><br>ABC<br> ||<br> =3D>DEF<br> &nb=
sp; ||<br> &nb=
sp; =3D>GHI<br> &=
nbsp; ||<br> &=
nbsp; =3D>A1=3Da<br> &n=
bsp; =3D>A=
2=3Db<br> &nbs=
p; =3D>A3=3Dc<br> =3D=
>GHI2<br>  =
; ||<br> &nb=
sp; =3D>B1=3Dd<br> &nbs=
p; =3D>B2=3De<br> &nb=
sp; =3D>B3=3Df<br><br>Hopefully
this description makes sense to you. ABC contains a map DEF and DEF con=
tains a few maps, two of which are GHI, and GHI2.<br><br>I am trying to e=
valuate A1 at the GHI level. This I do as follows:<br><br>${ABC.DEF.GHI.A=
1}<br><br>This results in the error that A1 is undefined. If I evaluate $=
{ABC.DEF.GHI} the error is that a string, etc. is expected but the expres=
sion evaluates to a simple hash.<br><br>Can you please point me in the ri=
ght direction? Ultimately, I want to be able to use a variable to represe=
nt the GHI level with something like:<br><br>${ABC.DEF[x].A1}<br><br>But =
I thought I'd work with the 'simple' case first.<br><br>Thanks in advance=
for your help.<br><p> 
<hr size=3D1>Yahoo! Messenger with Voice. <a href=3D"http://us.rd.yahoo=
.com/mail_us/taglines/postman1/*http://us.rd.yahoo.com/evt=3D39663/*http:=
//voice.yahoo.com">Make PC-to-Phone Calls</a> to the US (and 30+ countrie=
s) for 2=A2/min or less.
--0-1152298056-1152668482=:9054--
--===============1315971058==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
--===============1315971058==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
fmpp-open mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fmpp-open
--===============1315971058==--