FileDocCategorySizeDatePackage
DBTagExtraInfo.javaAPI DocExample811Thu Jun 28 16:14:16 BST 2001com.ora.jsp.tags.sql

DBTagExtraInfo

public class DBTagExtraInfo extends TagExtraInfo
This class provides additional attribute validation code for DBTag subclasses.
author
Hans Bergsten, Gefion software
version
1.0

Fields Summary
Constructors Summary
Methods Summary
public booleanisValid(TagData data)
Returns true only if a valid scope value is specified: page, request, session or application.

        boolean isValid = false;
        String scope = data.getAttributeString("scope");
        
        if (scope == null || scope.equals("page") || scope.equals("request") ||
            scope.equals("session") || scope.equals("application")) {
            isValid = true;
        }
        return isValid;