An interface that represents a JSP tag that can be invoked by Grails
Type | Name and description |
---|---|
void |
doTag(java.io.Writer targetWriter, java.util.Map<java.lang.String, java.lang.Object> attributes) Main method to invoke a tag library and output to the target write |
void |
doTag(java.io.Writer targetWriter, java.util.Map<java.lang.String, java.lang.Object> attributes, groovy.lang.Closure<?> body) Invokes a tag with a closure representing the body of the tag |
boolean |
isBodyTag() @return Return true if the tag class implements the BodyTag interface |
boolean |
isIterationTag() @return Return true if the tag class implements the IterationTag interface |
boolean |
isTryCatchFinallyTag() @return Return true if the tag class implements the TryCatchFinally interface |
Main method to invoke a tag library and output to the target write
targetWriter
- The writer the tag should write toattributes
- The tag attributesInvokes a tag with a closure representing the body of the tag
targetWriter
- The target writer to write toattributes
- The tag attributesbody
- The body of the tag