It's not a secret anymore!
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes doEndTag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "doEndTag" Watch "doEndTag" New topic


John Williamer

Joined: Mar 27, 2002
Posts: 23
Is doEndTag invoked if doStartTag or doAfterBody don not complete successfully?
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1868
John the JSP specification clearly states

If an exception is encountered during the evaluation of the body of a tag, its
doEndTag method will not be evaluated. See the TryCatchFinally tag for methods
that are guaranteed to be evaluated.
subject: doEndTag
It's not a secret anymore!