With reference to the HF book, the answer to question 9 at the bottom of chapter 10 (page 553) looks incorrect to me. If you agree with the book, can you please post a better explanation? Thanks.
Given:
10. public class BugTag extends BodyTagSupport {
11. public int doStartTag() throws JSPException {
12 // insert code here
13. }
14. }
Assume that the tag has been properly configured to allow body content. Which, if inserted at line 12 would cause the
JSP code
<mytags:mytag>BodyContent</mytags:mytag> to output BodyContent>
The book marks the correct answer to be
B. return EVAL_BODY_INCLUDE;
and tells you that option C is invalid because it directs the body of the tag to a buffer which the tag does not process. ??
However, since the class is extending BodyTagSupport, the correct answer should be: (ref to page 536)
B. return EVAL_BODY_INCLUDE;
C. return EVAL_BODY_BUFFERED;