commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31186] New: - JEXL needs definable functions
Date Sun, 12 Sep 2004 20:02:48 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31186>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31186

JEXL needs definable functions

           Summary: JEXL needs definable functions
           Product: Commons
           Version: 1.0 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: JEXL
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: paul@activemath.org


Currently, in Jexl, the only way to add a functionality is to define a variable.
Typically this is done in a separate environment... e.g. in jelly's j:new, j:set or...

Using this, one can define, say, "a" then invoke "a.doSomething(withThat)".

It would be nice to allow adding methods, e.g. "doSomething" to be invoked without any object.
This way I could just say "doSomething".

Examples of usage include:
- add some mathematical functions to make jexl full featured mathematically (e.g. "abs", "exp",

"atan")
- add some "general purpose utilitites" (e.g. "tokenize(aString)", "toString(xx)", or 
"relativeUrl(baseUrl, relPath)")
- thereby become more compatible with JSP (i've been told)

This should promote general usage of such functions availability.
In some situations this would help a lot. For example in maven where I too often still see

srcFile="${baseDIr+pathToResource}" which prevents any overridability.
(e.g. the cvs-usage.xml page in the xdoc plugin)

paul

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message