• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom tag life cycle

 
Edy Yu
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone:
I came accross the following words in JSP 1.2 Specification,
"If EVAL_BODY_INCLUDE is returned, setBodyContent() is not invoked,
doInitBody() is not invoked, the body is evaluated and �passed through� to the
current out, doAfterBody() is invoked and then, after zero or more iterations,
doEndTag() is invoked."
I have no problem with "setBodyContent() is not invoked". But I ran a test JSP with tag extends BodyTagSupport and I saw doInitBody() was called even though I asked doStartTag() to return EVAL_BODY_INCLUDE.
Was it a defect on JSP specification or I missed out something?
Thanks in advance.
 
Guy Allard
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi - Do a search in this forum for:
EVAL_BODY_BUFFERED
You will find a number of relevant threads.
Regards, Guy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic