Augusto,
Here's how you can do it:
context.setValue("/property", context.getValue("$property"));
I hope this helps.
- Dmitri
----- Original Message ----- From: "augusto callejas" <[EMAIL PROTECTED]>
To: <commons-user@jakarta.apache.org>
Sent: Saturday, March 19, 2005 1:36 PM
Subject: jxpath >> using variables
hi-
i want to use variables in this way:
JXPathContext context = JXPathContext.newContext(bean); context.getVariables().declareVariable("property", new Integer(2)); context.setValue("/property", "$property");
that is, i want to reference a variable as part of the value, not just as part of the reference in a getValue() call.
is this currently not supported?
thanks, augusto.
--------------------------------------------------------------------- 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]