jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torgeir Veimo <torg...@vertech.no>
Subject jndi taglib
Date Fri, 11 May 2001 13:32:07 GMT
I think the jndi taglib, "getAttribute" tag could add a attributeRef
attribute, so that one can specify an attriute name by a pageContext
attribute instead of literally, eg. like

<jndi:getAttribute ref="profileName" attributeRef="attribute_name"/>

The additional code in GetAttributeTag.java would be;

    /**
     * Setter for property attribute ref.
     * @param ref New value of property attribute ref.
     */
    public void setAttributeRef(String attributeRef) {
        this.attribute = (String)
pageContext.findAttribute(attributeRef);
    }

and the addition to the .tld file would be 

    <attribute>
      <name>attributeRef</name>
      <required>false</required>
      <rtexprvalue>false</rtexprvalue>
    </attribute>

Comments?


-- 
- Torgeir

Mime
View raw message