There doesn't appear to be a declarative/TLD way to do this.

JSP 2.0 allows you to implement a translation-time translator by extending the class javax.servlet.jsp.tagext.TagLibraryValidator and implementing the validate message.

You could also do it at runtime through the use of the SimpleTag.getParent() method and throw an exception if the parent is not the correct type.

It might look something like this: