Win a copy of Microservices in Action this week in the Web Services 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

setJspBody() called by the container ?  RSS feed

 
Ranch Hand
Posts: 1703
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On p. 528 of Head First book,


The setJspBody() method will be invoked only if the tag is actually called with a body. If the tag is invoked without a body,
either with an empty tag,or with nothing in between tags, the setJspBody() method will not be called.



So, does it mean setJspBody() method is called by the container when the tag is defined as not empty?
Should the developer call setJspBody within doTag() method?
 
Creator of Enthuware JWS+ V6
Posts: 3194
276
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

So, does it mean setJspBody() method is called by the container when the tag is defined as not empty?


Yes, it does, just before the doTag() method is invoked.

Should the developer call setJspBody within doTag() method?


No.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!