I use both JBoss and Weblogic. One difference between the two that catches me occasionally is TLD file validation. If I create a TLD file with a tag defintion that has an attribute like the following:
<tag>
<name>loadCustomizer</name>
<tag-class>MyCustomTag</tag-class>
<body-content>empty</body-content>
<attribute>
<name>myattribute</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
If the class
MyCustomTag does not have the getters and setters for
myattribute (i.e. no
setMyattribute/getMyattribute methods), in Weblogic an error is displayed upon processing of a JSP importing the TLD file regardless of whether the attribute is ever used. In JBoss, an error is only generated when the tag is called with the attribute having been used.
Is there a way to force JBoss to validate the TLD more strictly? I want to make sure the class has the necessary methods as defined by the TLD.
Thanks,
Bob