You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Ryan Hoegg <rh...@isisnetworks.net> on 2003/08/18 22:42:16 UTC
[jexl] dotted property names in expressions
Hi,
There is a problem with jexl when testing dotted property names for
emptiness. I am using it from jelly through maven:
maven -Ddotted.property.name=foo goal
inside the goal:
<j:if test="${empty(dotted.property.name)}">
<echo> Empty property </echo>
</j:if>
<j:set var="littlename" value="${dotted.property.name}"/>
<j:if test="${empty(littlename)}">
<echo> Empty little property </echo>
</j:if>
Only the first echo happens.
If I get more time to get the code from CVS working in eclipse and to
get my head around Jexl internals, I'll write a unit test.
--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [jexl] dotted property names in expressions
Posted by Peter Royal <pr...@apache.org>.
On Monday, August 18, 2003, at 04:42 PM, Ryan Hoegg wrote:
> There is a problem with jexl when testing dotted property names for
> emptiness. I am using it from jelly through maven:
>
> maven -Ddotted.property.name=foo goal
>
> inside the goal:
>
> <j:if test="${empty(dotted.property.name)}">
> <echo> Empty property </echo>
> </j:if>
>
> <j:set var="littlename" value="${dotted.property.name}"/>
>
> <j:if test="${empty(littlename)}">
> <echo> Empty little property </echo>
> </j:if>
>
I just added a unit test to the CVS version of jexl, I think it
exercises this ( and works fine )
-pete