• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

special cases on EVAL_BODY_BUFFERED returning value

 
AL Yi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
anybody knows that what happens when a tag handler class implementing IterationTag returns BodyTag.EVAL_BODY_BUFFERED at its doStartTag() method?

and how about returning EVAL_BODY_INCLUDE when body-content is declared as "empty"?

Cheers,
Alvin
 
Sergey Tyulkin
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the first question, answer is:
There qill be a runtime error, when you try to return BodyTag.EVAL_BODY_BUFFERED, as this value is not alloed to return from IterationTag methods. BTW, there will be no compilation or validation errors, as doStartTag must return int value, and BodyTag.EVAL_BODY_BUFFERED is an ordinal int value.
 
AL Yi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thx Sergey
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic