The tag library descriptor file for a custom tag declares the as "empty". Which of the following is the valid return value of doStartTag() method for this tag?
Given answer: a SKIP_BODY
But when I tried, it works for both SKIP_BODY and EVAL_BODY_INCLUDE.
EVAL_BODY_INCLUDE is not conform the JSP specifications:
Empty and Non-Empty Action If the TagLibraryDescriptor file indicates that the action must always have an empty action, by an <body-content> entry of “empty”, then the doStartTag() method must return SKIP_BODY. Otherwise, the doStartTag() method may return SKIP_BODY or EVAL_BODY_INCLUDE.
Forget Steve. Look at this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!