commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vijay (JIRA)" <>
Subject [jira] Created: (JEXL-53) Defining and creating List for creating an expression
Date Fri, 06 Feb 2009 18:53:59 GMT
Defining and creating List for creating an expression

                 Key: JEXL-53
             Project: Commons JEXL
          Issue Type: Improvement
    Affects Versions: 1.1
         Environment: Windows, RAD 7.0
            Reporter: Vijay
             Fix For: 1.1

I am new to using JEXL and my organization is looking to externalize the list of expression
we have.  Many of the expressions have a list of values as a reference data.  I would like
to define these values in a properties file along with the expression.  For example:

"List myList = new List['2','3']; if(myList.contains(myValue)){true} else {false}";

I am unable to define this syntax (error at definition of List).  I could not helpful exception
message, while creating the above exception.  

The question is, can we define such list in JEXL expression string? what is the syntax?  I
could not figure out the answer from the java docs, sample code, JUnit tests and google !!!

If not, this case can be a potential candidate for improvement.


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

View raw message