Re: Dealing with reserved names

Bruce Perryman <[email protected]> Thu, 1 Jun 2006 06:01:44 -0700 (PDT)
Newsgroups gmane.comp.text.fmpp
Message-ID <[email protected]>
--===============1079245675==
Content-Type: multipart/alternative; boundary="0-1025221405-1149166904=:41687"
Content-Transfer-Encoding: 7bit

--0-1025221405-1149166904=:41687
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Thanks for responding.

It's a nested Map populated in java from a db resultset. One of the keys'=
 name is 'default'. When I evaluate it, it is always empty (""). If the n=
ame is something other than 'default', I retrieve the value of the key. I=
'm assuming that the problem is that FreeMarker is confused by the reserv=
ed name 'default'.=20

If that is true, renaming the key name would be a project. I was wonderin=
g if FreeMarker could somehow 'escape' the name 'default' so that I can r=
etrieve the value associated with that key.

Thanks.

Daniel Dekany <[email protected]> wrote: Wednesday, May 31, 2006, 6:00:=
11 PM, Bruce Perryman wrote:

> Hi,
>=20
> Quick, simple question. I have a hash which contains the name
> 'default' as one of the keys. When I attempt to display it's value,
> there's a problem.
>=20
> ${level1.level2.default}
>=20
> Is there a way to escape this, or must the key name be changed?
>=20
> Thanks

Why is the "default" key already used for something? From what data
source does the hash come from?

--=20
Best regards,
 Daniel Dekany



_______________________________________________
fmpp-open mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fmpp-open


	=09
---------------------------------
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone.  Get Ya=
hoo! Messenger with Voice
--0-1025221405-1149166904=:41687
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Thanks for responding.<br><br>It's a nested Map populated in java from a =
db resultset. One of the keys' name is 'default'. When I evaluate it, it =
is always empty (""). If the name is something other than 'default', I re=
trieve the value of the key. I'm assuming that the problem is that FreeMa=
rker is confused by the reserved name 'default'. <br><br>If that is true,=
 renaming the key name would be a project. I was wondering if FreeMarker =
could somehow 'escape' the name 'default' so that I can retrieve the valu=
e associated with that key.<br><br>Thanks.<br><br><b><i>Daniel Dekany &lt=
;[email protected]&gt;</i></b> wrote:<blockquote class=3D"replbq" style=
=3D"border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-le=
ft: 5px;"> Wednesday, May 31, 2006, 6:00:11 PM, Bruce Perryman wrote:<br>=
<br>&gt; Hi,<br>&gt; <br>&gt; Quick, simple question. I have a hash which=
 contains the name<br>&gt; 'default' as one of the keys. When I attempt t=
o display it's value,<br>&gt; there's a
 problem.<br>&gt; <br>&gt; ${level1.level2.default}<br>&gt; <br>&gt; Is t=
here a way to escape this, or must the key name be changed?<br>&gt; <br>&=
gt; Thanks<br><br>Why is the "default" key already used for something? Fr=
om what data<br>source does the hash come from?<br><br>-- <br>Best regard=
s,<br> Daniel Dekany<br><br><br><br>_____________________________________=
__________<br>fmpp-open mailing list<br>[email protected]<b=
r>https://lists.sourceforge.net/lists/listinfo/fmpp-open<br></blockquote>=
<br><p>
		<hr size=3D1>Feel free to call! Free PC-to-PC calls. Low rates on PC-to=
-Phone. <a href=3D"http://us.rd.yahoo.com/mail_us/taglines/postman10/*htt=
p://us.rd.yahoo.com/evt=3D39663/*http://messenger.yahoo.com"> Get Yahoo! =
Messenger with Voice</a>
--0-1025221405-1149166904=:41687--


--===============1079245675==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============1079245675==
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

--===============1079245675==--