As definition in the
JSP DTD file:
<!ELEMENT attribute (name, required? rtexprvalue? type?, description?) > There is no place in the TLD file for you to define the default value for an attribute. However you can specify the "required" field of an attribute as "false", which marks it as optional. Then in your tabclass, define the default value for that attribute. If later when using the tag in your JSP, you specified an attribute value, the JSP container will overwrite the default value by calling the setter method in your tagclass.
Does that make sense?
Tieyi