FileDocCategorySizeDatePackage
UpdateTagExtraInfo.javaAPI DocExample807Thu Jun 28 16:14:16 BST 2001com.ora.jsp.tags.sql

UpdateTagExtraInfo.java

package com.ora.jsp.tags.sql;

import javax.servlet.jsp.tagext.*;

/**
 * This class provides information about the variable created by the
 * UpdateTag to the JSP container at translation-time.
 *
 * @author Hans Bergsten, Gefion software <hans@gefionsoftware.com>
 * @version 1.0
 */
public class UpdateTagExtraInfo extends DBTagExtraInfo {
    public VariableInfo[] getVariableInfo(TagData data) {
        if (data.getAttributeString("id") == null) {
            return new VariableInfo[0];
        }
        else {
            return new VariableInfo[]
            {
                new VariableInfo(data.getAttributeString("id"),
                    "java.lang.Integer",
                    true,
                    VariableInfo.AT_END)
            };
        }
    }
}