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

Reply via email to