commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Psi Aushilfe3" <Aushilfe3....@prosieben.de>
Subject [JXPath] Compiled expression with var before vars are declared
Date Fri, 08 Aug 2003 08:54:08 GMT
Hi!

public class Blah
{
	final static CompiledExpression c =
JXPathContext.compile("whatever[blah=$var]");

	public void init(JXPathContext xpath)
	{
		xpath.getVariables().declareVariable("var", something);
	}
}

Is this valid? Can I compile the expression before I actually declare
the variable?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message