Win a copy of Pragmatic AI this week in the Artificial Intelligence 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

setJspBody() called by the container ?  RSS feed

 
Ranch Hand
Posts: 1696
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
Bartender
Posts: 3117
259
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!