• Post Reply Bookmark Topic Watch Topic
  • New Topic

hfsj chapter 10 cooperating tags doubt ?  RSS feed

 
Ranch Hand
Posts: 924
1
Fedora Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please refer hfsj 2nd edition, chapter 10, page 572-573. following is an example of co-operating tags example given at the above mentioned pages




following is the tag invocation given :



my doubt is since the child tags are empty(no body content) then why does the doStartTag() method of the MenuItem class return EVAL_BODY_INCLUDE. ?? it can return SKIP_BODY, right?

 
Creator of Enthuware JWS+ V6
Saloon Keeper
Posts: 3064
248
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

my doubt is since the child tags are empty(no body content) then why does the doStartTag() method of the MenuItem class return EVAL_BODY_INCLUDE. ?? it can return SKIP_BODY, right?



Correct! You are right, as there is no body, there is no need to evaluate it.

Regards,
Frits
 
gurpeet singh
Ranch Hand
Posts: 924
1
Fedora Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot Fritz.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!