[jira] Created: (JEXL-41) Allow nested ${} evaluation

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (JEXL-41) Allow nested ${} evaluation

Gary D. Gregory (Jira)
Allow nested ${} evaluation
---------------------------

                 Key: JEXL-41
                 URL: https://issues.apache.org/jira/browse/JEXL-41
             Project: Commons JEXL
          Issue Type: Improvement
    Affects Versions: 1.0
         Environment: commons-jexl-1.0.jar found inside the all-in-one binary package for jelly 1.0
            Reporter: Alejandro Torras


Hi,

It could be great to allow nested ${} expressions.

I.e. having the following 2 properties:
    hi=hello
    hello.world=Hello World!

Be able to parse the following code: ${${hi}.world} and produce the "Hello World!" message.

It should not be too difficult to allow this feature...

Thanks in advance!
Alejandro Torras.


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (JEXL-41) Allow nested ${} evaluation

Gary D. Gregory (Jira)

     [ https://issues.apache.org/jira/browse/JEXL-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Torras updated JEXL-41:
---------------------------------

    Priority: Minor  (was: Major)

> Allow nested ${} evaluation
> ---------------------------
>
>                 Key: JEXL-41
>                 URL: https://issues.apache.org/jira/browse/JEXL-41
>             Project: Commons JEXL
>          Issue Type: Improvement
>    Affects Versions: 1.0
>         Environment: commons-jexl-1.0.jar found inside the all-in-one binary package for jelly 1.0
>            Reporter: Alejandro Torras
>            Priority: Minor
>
> Hi,
> It could be great to allow nested ${} expressions.
> I.e. having the following 2 properties:
>     hi=hello
>     hello.world=Hello World!
> Be able to parse the following code: ${${hi}.world} and produce the "Hello World!" message.
> It should not be too difficult to allow this feature...
> Thanks in advance!
> Alejandro Torras.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (JEXL-41) Allow nested ${} evaluation

Gary D. Gregory (Jira)
In reply to this post by Gary D. Gregory (Jira)

    [ https://issues.apache.org/jira/browse/JEXL-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12552584 ]

Alejandro Torras commented on JEXL-41:
--------------------------------------

1.1 doesn't allow it too.

> Allow nested ${} evaluation
> ---------------------------
>
>                 Key: JEXL-41
>                 URL: https://issues.apache.org/jira/browse/JEXL-41
>             Project: Commons JEXL
>          Issue Type: Improvement
>    Affects Versions: 1.0
>         Environment: commons-jexl-1.0.jar found inside the all-in-one binary package for jelly 1.0
>            Reporter: Alejandro Torras
>            Priority: Minor
>
> Hi,
> It could be great to allow nested ${} expressions.
> I.e. having the following 2 properties:
>     hi=hello
>     hello.world=Hello World!
> Be able to parse the following code: ${${hi}.world} and produce the "Hello World!" message.
> It should not be too difficult to allow this feature...
> Thanks in advance!
> Alejandro Torras.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (JEXL-41) Allow nested ${} evaluation

Gary D. Gregory (Jira)
In reply to this post by Gary D. Gregory (Jira)

    [ https://issues.apache.org/jira/browse/JEXL-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12552592 ]

Alejandro Torras commented on JEXL-41:
--------------------------------------

Hi all,

After testing a bit I found a workaround using jelly code, but it would be nice to have it implemented in JEXL.

Regards,
Alejandro Torras.

> Allow nested ${} evaluation
> ---------------------------
>
>                 Key: JEXL-41
>                 URL: https://issues.apache.org/jira/browse/JEXL-41
>             Project: Commons JEXL
>          Issue Type: Improvement
>    Affects Versions: 1.0
>         Environment: commons-jexl-1.0.jar found inside the all-in-one binary package for jelly 1.0
>            Reporter: Alejandro Torras
>            Priority: Minor
>
> Hi,
> It could be great to allow nested ${} expressions.
> I.e. having the following 2 properties:
>     hi=hello
>     hello.world=Hello World!
> Be able to parse the following code: ${${hi}.world} and produce the "Hello World!" message.
> It should not be too difficult to allow this feature...
> Thanks in advance!
> Alejandro Torras.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (JEXL-41) Allow nested ${} evaluation

Gary D. Gregory (Jira)
In reply to this post by Gary D. Gregory (Jira)

    [ https://issues.apache.org/jira/browse/JEXL-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12732566#action_12732566 ]

Henri Biestro commented on JEXL-41:
-----------------------------------

For JSP/JSF unified-EL-like syntax, UnifiedJEXL implements this feature in 2.0.

> Allow nested ${} evaluation
> ---------------------------
>
>                 Key: JEXL-41
>                 URL: https://issues.apache.org/jira/browse/JEXL-41
>             Project: Commons JEXL
>          Issue Type: Improvement
>    Affects Versions: 1.0
>         Environment: commons-jexl-1.0.jar found inside the all-in-one binary package for jelly 1.0
>            Reporter: Alejandro Torras
>            Priority: Minor
>
> Hi,
> It could be great to allow nested ${} expressions.
> I.e. having the following 2 properties:
>     hi=hello
>     hello.world=Hello World!
> Be able to parse the following code: ${${hi}.world} and produce the "Hello World!" message.
> It should not be too difficult to allow this feature...
> Thanks in advance!
> Alejandro Torras.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (JEXL-41) Allow nested ${} evaluation

Gary D. Gregory (Jira)
In reply to this post by Gary D. Gregory (Jira)

     [ https://issues.apache.org/jira/browse/JEXL-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rahul Akolkar updated JEXL-41:
------------------------------

    Fix Version/s: 2.0

Setting fix version to v2.0.


> Allow nested ${} evaluation
> ---------------------------
>
>                 Key: JEXL-41
>                 URL: https://issues.apache.org/jira/browse/JEXL-41
>             Project: Commons JEXL
>          Issue Type: Improvement
>    Affects Versions: 1.0
>         Environment: commons-jexl-1.0.jar found inside the all-in-one binary package for jelly 1.0
>            Reporter: Alejandro Torras
>            Priority: Minor
>             Fix For: 2.0
>
>
> Hi,
> It could be great to allow nested ${} expressions.
> I.e. having the following 2 properties:
>     hi=hello
>     hello.world=Hello World!
> Be able to parse the following code: ${${hi}.world} and produce the "Hello World!" message.
> It should not be too difficult to allow this feature...
> Thanks in advance!
> Alejandro Torras.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (JEXL-41) Allow nested ${} evaluation

Gary D. Gregory (Jira)
In reply to this post by Gary D. Gregory (Jira)

     [ https://issues.apache.org/jira/browse/JEXL-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rahul Akolkar resolved JEXL-41.
-------------------------------

    Resolution: Fixed

This should be fixed in the 2.0 branch in SVN as part of the new UnifiedJEXL class. Please try it out (by building the branch) and if further work is needed, reopen this issue with a complete JUnit test that fails.


> Allow nested ${} evaluation
> ---------------------------
>
>                 Key: JEXL-41
>                 URL: https://issues.apache.org/jira/browse/JEXL-41
>             Project: Commons JEXL
>          Issue Type: Improvement
>    Affects Versions: 1.0
>         Environment: commons-jexl-1.0.jar found inside the all-in-one binary package for jelly 1.0
>            Reporter: Alejandro Torras
>            Priority: Minor
>             Fix For: 2.0
>
>
> Hi,
> It could be great to allow nested ${} expressions.
> I.e. having the following 2 properties:
>     hi=hello
>     hello.world=Hello World!
> Be able to parse the following code: ${${hi}.world} and produce the "Hello World!" message.
> It should not be too difficult to allow this feature...
> Thanks in advance!
> Alejandro Torras.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.