How can i dynamically assign values to the tld file

How can i dynamically assign values to the tld file
[58 byte] By [samindiaa] at [2007-11-26 13:14:13]
# 1

In the tld you write for the tag handler mention the following sub tags in the attribute

<attribute>

<name>xyz</name>

<required>true</required>

<rtexprvalue>true</rtexprvalue>

</attribute>

import the packagejavax.servlet.jsp.tagext.DynammicAttributes;

add the method

public void setDynamicAttribute(String rui, String localname, Object value) throws JspException

{

<Your Required task>

}

Its better if you SimpleTagSupport class to be extended.

Raja_Abilasha at 2007-7-7 17:33:19 > top of Java-index,Java Essentials,New To Java...