• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

chapter-9,example-9

 
dolly shah
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

-which inserted at line 1 , would cause the JSP code <mytags:mytag>BodyContent</mytags:mytag> to output BodyContent?

1 return SKIP_BODY
2 return EVAL_BODY_INCLUDE
3 return EVAL_BODY_BUFFERED
4 return BODY_CONTENT

-In the book the answer is "2". and the description is "3 is invalid because it directs the body of the tag to a buffer which this tag does not process."
-I think the answer is "3". I am not getting what the description does say?
Can anyone please explain?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The output of a BodyTag whose doStartTag returns EVAL_BODY_BUFFERED is sent to a buffer, not directly to the browser. So it won't output anything, unless you flush the buffer's content to the browser's output stream.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic