commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james_strac...@yahoo.co.uk>
Subject Re: [Jelly] double dereference of a property?
Date Tue, 14 Jan 2003 07:58:22 GMT
From: "Brett Porter" <bporter@f2network.com.au>
> Hi,
> 
> I was wondering in what way this might be possible:
> 
> <j:set var="filename" value="${ ${fileProperty} }" />
> 
> fileProperty is "some.file.property", obtained by tokenizing a string
> filename = ${some.file.property}
> 
> Is there any way to do this? I'm using this in Maven.

One way is to use the property name variable to lookup the variable. e.g.

<j:set var="varName" value="some.file.property"/>
<j:set var="filename" value="${context.getVariable(varName)}"/>

James
-------
http://radio.weblogs.com/0112098/
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

Mime
View raw message