[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-commons-dev
Subject: Re: [configuration] Accessing from EL script
From: Emmanuel Bourg <ebourg () micropole-univers ! com>
Date: 2004-05-19 15:07:59
Message-ID: 200405191512.RAA26407 () vertigo ! micropole ! com
[Download RAW message or body]
Mark R. Diggory wrote:
> For instance, storing :
>
> config.add("a.b", z);
> config.add("a.b.c", y);
> config.add("a.b.c.d.e", x);
> config.add("a.b.c.d.e.f", w);
>
> ${sessionScope.configAttribute.a.b} --> z
> ${sessionScope.configAttribute.a.b.c} --> y
> ${sessionScope.configAttribute.a.b.c.d.e} --> x
> ${sessionScope.configAttribute.a.b.c.d.e.f} --> w
>
> but
>
> ${sessionScope.configAttribute.a.b.c.d}
> --> Map containing {"e",x; "e.f",w}
I'm not sure it works, if I understand well, the following EL:
${config.a.b.c}
translates into (through reflexion):
config.get("a").get("b").get("c");
but what is supposed to return the get("b") part ? the value of "a.b"
that's "z" or the subset under "a.b" containing the "c", "c.d.e" and
"c.d.e.f" elements ?
Emmanuel Bourg
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic