J�rg Schaible <[EMAIL PROTECTED]> wrote on 28/11/2003 
02:17:16 AM:
[snip]
> >> So is there any solution to create such assembled variables?
> > 
> > 
> > Use something like this:
> > 
> >                 <j:set var="variable">jdbc.database.${jdbc.os}</j:set>
> >                 <j:set var="dbdatabase" value=
> > "${context.findVariable(variable)}" />
> > 
> > This sets dbdatabase to the value of the variable ('jdbc.database.' +
> > whatever was in the variable 'jdbc.os').
> 
> Does not work unfortunately. In your example I get an empty string as 
> content of "dbdatabase". Looking into Jelly examples I can use the 
> expression ${context.findVariable("variable")}, but this is equivalent 
to 
> ${variable} and delivers just the name of the created variable, but not 
its value ..

It works fine for me. Can you post your example that doesn't work?

--
dIon Gillard, Multitask Consulting
Blog:      http://blogs.codehaus.org/people/dion/





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to