//-------------------------------------------------------------------------
public void doTag(XMLOutput output) throws JellyTagException {
// perform validation up front to fail fast
if ( var != null ) {
if ( target != null || property != null ) {
throw new JellyTagException( "The 'target' and 'property' attributes cannot be used in combination with the 'var' attribute" );
}
}
else {
if ( target == null ) {
throw new JellyTagException( "Either a 'var' or a 'target' attribute must be defined for this tag" );
}
if ( property == null ) {
throw new JellyTagException( "The 'target' attribute requires the 'property' attribute" );
}
}
Object answer = null;
if ( value != null ) {