Example usage for javax.servlet.jsp.tagext TagData getAttribute

List of usage examples for javax.servlet.jsp.tagext TagData getAttribute

Introduction

In this page you can find the example usage for javax.servlet.jsp.tagext TagData getAttribute.

Prototype


public Object getAttribute(String attName) 

Source Link

Document

The value of the attribute.

Usage

From source file:com.germinus.easyconf.taglib.PropertyTei.java

/**
 * Return information about the scripting variables to be created.
 *//*from w  w  w. j a  va  2 s .c  om*/
public VariableInfo[] getVariableInfo(TagData data) {

    String type = (String) data.getAttribute("type");
    if (StringUtils.isEmpty(type)) {
        type = "java.lang.String";
    }

    return new VariableInfo[] {
            new VariableInfo(data.getAttributeString("id"), type, true, VariableInfo.AT_END) };

}