Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

setJspBody() called by the container ?  RSS feed

 
Ranch Hand
Posts: 1684
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
Saloon Keeper
Posts: 3097
255
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.
 
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!