• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Q: HF, Pg 543

 
Henrik Krievs
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there !

On page 543 - the menu-item taghandler ex:

the doStartTag is returninng EVAL_BODY_INCLUDE - but could it might as well return SKIP_BODY, as the tag don't have a body and only takes a parameter ?

Rgds, Henrik
 
Roger Yates
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct. Future-proofing...?
 
Henrik Krievs
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Future-proofing ??

Does that mean I should have tried it myself ;-)

Unfortunately, I'm not working with java on my daily job - so I don't have much time to experiment.

Rgds, Henrik
 
Roger Yates
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'Future-proofing' was kind-of tongue-in-cheek - I meant that the body would get processed without needing to change the code if you later decided to put a body in the tag (or if the body was optional).
Of course if you really didn't want a body then you would need to specify 'empty' to enforce this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic