• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setJspBody() called by the container ?

 
Himai Minh
Ranch Hand
Posts: 1360
7
  • 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?
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2531
112
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