Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • 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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!