• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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.
 
And tomorrow is the circus! We can go to the circus! I love the circus! We can take this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic