Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

chapter-9,example-9

 
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Warning! Way too comfortable! Do not sit! Try reading this tiny ad instead:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic