Jon - Thanks for the suggestion. It worked. However, it is kind of inelegant to have to declare a temporary variable every time I want to use nested expressions. Is there a way to do it in one line? Thanks.
-marc -----Original Message----- From: Jon Ekdahl [mailto:[EMAIL PROTECTED] Sent: Monday, October 24, 2005 7:06 PM To: Maven Users List Subject: SV: [m1.0.2] nested expressions in Jelly '+' in Jelly is most likely implemented as in JSTL expression language, in which case it represents numeric addition, not string concatenation (hence the NumericFormatException's, when Jelly tries to convert your strings to numbers) I could be wrong about that, but you could always try: <j:set var="variableName" value="bar.something.${othervar}.maven.rocks"/> <j:set var="foo" value="${context.getVariable(variableName)}" /> //Jon ________________________________ Från: Marc Attiyeh [mailto:[EMAIL PROTECTED] Skickat: ti 2005-10-25 00:25 Till: [email protected] Ämne: [m1.0.2] nested expressions in Jelly All - I want to do something like this: <j:set var="foo" value="${bar.something.${othervar}.maven.rocks}"/> unfortunately, maven is kindly telling me this is not possible (via multiple stack traces). I searched around and found this: <j:set var="foo" value="${context.getVariable('bar.something.'+othervar+'.maven.rocks')}" /> However, now I get multiple NumberFormatExceptions (maybe something to do with the plus sign?) Can anyone tell me how to nest an expression in another one? Thanks! -marc --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
