But i tested in Tomcat 5.0.28.. It is not giving any error.. Here is my code
if TLD declares an empty body, doStartTag must return SKIP_BODY..
I am getting following output in TOMCAT
Is this bug in TOMCAT or bug in HFSJ? Anyone know what is in SPEC? Help me please
If you look into the JSP spec, there are actually two statements.
If the TagLibraryDescriptor file indicates that the action must always have an empty element body, by a <body-content> entry of "empty", then the doStartTag() method must return SKIP_BODY.
Note that which methods are invoked after the doStartTag() depends on both the return value and on if the custom action elements is empty or not in the JSP page, not on how it's declared in the TLD
Not easy to understand for me but point out that doStartTag() can have other value when the body-conetent is "empty"