I debug with jet source, it throw a exception, please note ///////:
public boolean doEvalCondition(TagInfo td, JET2Context context) throws
JET2TagException
{
String testXPath = getAttribute("test"); //$NON-NLS-1$
var = getAttribute("var"); ///////var is null
XPathContextExtender xpathExtender =
XPathContextExtender.getInstance(context);
// get the result of the xpath expression prior to casting to boolean,
in case we define a 'var'.
Object rawObject =
xpathExtender.resolveAsObject(xpathExtender.currentXPathContextObject(),
testXPath);///////throw a exception which means not support
isVariableDefined function
boolean processContents = XPathUtil.xpathBoolean(rawObject);
if(processContents && var != null)
{
varAlreadySet = context.hasVariable(var);
if(varAlreadySet)
{
savedValue = context.getVariable(var);
}
context.setVariable(var, rawObject);
}