//*********************************************************************
// Tag logic
public void doTag(XMLOutput output) throws Exception {
SQLExecutionTag parent =
(SQLExecutionTag) findAncestorWithClass(this, SQLExecutionTag.class);
if (parent == null) {
throw new JellyException(Resources.getMessage("SQL_PARAM_OUTSIDE_PARENT"));
}
Object paramValue = value;
if (value != null) {
paramValue = value;
}
else {
String bodyContent = getBodyText();
if (bodyContent != null) {
bodyContent = bodyContent.trim();
if (bodyContent.length() > 0) {
paramValue = bodyContent;
}
}
}
parent.addSQLParameter(paramValue);
}