• Post Reply Bookmark Topic Watch Topic
  • New Topic

Executing the doAfterBody() of a Custom Tag w/ no body  RSS feed

 
Alton Hernandez
Ranch Hand
Posts: 443
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have this JSP program taken from a JSP book written for JSP 1.2. But I am currently running it in Tomcat 5.0.
That JSP program uses a custom tag with no body(i.e. empty action). The <bodycontent> of that custom tag is defined as TAGDEPENDENT in the tld. And its tag handler has a doAfterBody() method.
The problem now is that when the tag handler is called, the doAfterBody() is not executed, and the sample program is meant to execute this method. Originally, the doStartTag() returns a EVAL_BODY_TAG. But this has been deprecated so I changed it to EVAL_BODY_BUFFERED, but it still won't execute the doAfterBody().
I just wonder if in the old specification, the EVAL_BODY_TAG would force the handler to execute the doAfterBody(). Or did the author make some mistake here? And how can I force the program to call the doAfterBody()?
Thanks.
[ March 15, 2004: Message edited by: Alton Hernandez ]
[ March 15, 2004: Message edited by: Alton Hernandez ]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!