commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <>
Subject Re: [chain] add expression evaluation?
Date Thu, 02 Dec 2004 23:14:08 GMT
I've never used JEXL but the Mozilla Rhino javascript engine is pretty
keen.  Maybe this feature could start in contrib and move to the core if
people find it useful?


--- Joe Germuska <> wrote:

> In a discussion on the struts-user list, I got around to describing a 
> configuration format which made me wonder if folks would tolerate 
> some kind of expression evaluation engine in chain.
> The musing repeated below:
> At 1:57 PM -0600 12/2/04, Joe Germuska wrote:
> >I think you could find the view processor command by using the 
> >standard Chain "lookup action".  Well, out of the box, its "nameKey" 
> >property would depend on some String value being placed into the 
> >context under a certain key, and as it is now, we're talking about 
> >using a String property of an Object in the context under a certain 
> >key.  If we gave the LookupCommand an expression language (JEXL, 
> >perhaps?), then we could do something like this, which seems cool:
> >
> >       <command
> >           className="org.apache.commons.chain.generic.LookupCommand"
> >         catalogName="struts-view-preprocess"
> >                nameKey="${}"
> >            optional="true"/>
> >
> >or possibly work some magic to make the "context" prefix assumed. 
> >Anyone  have an opinion about adding a JEXL dependency to Chain, or 
> >whether this would be best left to a Struts subclass of 
> >LookupCommand?
> Ideas?  I'm not sure right now of the scope of this proposal -- is it 
> just for the LookupCommand?  Is it somehow implemented more widely? 
> How can you do that when Chain is first-and-foremost an API?
> I can certainly see some of these questions leading folks to throw up 
> their hands and say "let's just keep it simple."  There's no critical 
> reason to add this dependency to the core, but when you think about 
> the expressive power it would provide in the config files, it seems 
> pretty cool.
> Joe
> -- 
> Joe Germuska            
> "Narrow minds are weapons made for mass destruction"  -The Ex
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message