How can I use the the result of isValid() method of TagExtraInfo class in my application to validate the attributes of a custom jsp tag since my tag class and the class which extends TagExtraInfo are different classes?

Frank Steidinger

The isValid() method of the TagExtraInfo class is called by the JSP engine before your custom tag is executed, i.e. before the doStartTag() method is called.

The current values of the attributes are passed to the isValid() method in form of an TagData object. You can use the TagData.getAttribute(String name) method to check the relevant attribute values.

The main problem with the isValid() method is that there is no standard way your TagExtraInfo class can report why the attribute values are invalid.