All Known Implementing Classes:
LoopTagSupport
This interface provides two new methods: doCatch(Throwable) and doFinally(). The prototypical invocation is as follows:
h = get a Tag(); // get a tag handler, perhaps from pool h.setPageContext(pc); // initialize as desired h.setParent(null); h.setFoo("foo"); // tag invocation protocol; see Tag.java try { doStartTag()... .... doEndTag()... } catch (Throwable t) { // react to exceptional condition h.doCatch(t); } finally { // restore data invariants and release per-invocation resources h.doFinally(); } ... other invocations perhaps with some new setters ... h.release(); // release long-term resources
Method from javax.servlet.jsp.tagext.TryCatchFinally Summary: |
---|
doCatch, doFinally |
Method from javax.servlet.jsp.tagext.TryCatchFinally Detail: |
---|
This method is not invoked if the Throwable occurs during one of the setter methods. This method may throw an exception (the same or a new one) that will be propagated further up the nest chain. If an exception is thrown, doFinally() will be invoked. This method is intended to be used to respond to an exceptional condition. |
This method is not invoked if the Throwable occurs during one of the setter methods. This method should not throw an Exception. This method is intended to maintain per-invocation data integrity and resource management actions. |