Tags that end but dont

In my custom tag library, I have an HTML tag that will write out HTML along with any attributes it is passed:
<tl:HTML name="img">
  <tl:HTMLattribute name="src" value="myImg.gif"/>
</tl:HTML>I do that by extending BodyTagSupport and not writing the tag HTML until the doAfterBody() method. I would also like to be able to support the tag as a self-closign tag, like
<tl:HTML name="br"/>The problem is it never gets to doAfterBody and never outputs if there is no body. Suggestions?
dan

got it solved. of course, use doEndTag for the writing and doAfterBody to gather the body content if it exists.
thanks,
-d

Similar Messages

Maybe you are looking for