@Override public void close() { if (closed) { return; } closed = true; if (needPop) { pageContext.popWriter(); } pageContext.popTopTag(); try { if (isTryCatchFinally) { ((TryCatchFinally) tag).doFinally(); } // No pooling yet tag.release(); } finally { if (needDoublePop) { pageContext.popWriter(); } } }
/** * Handles the finally block of tag lifecycle processing. * Invokes <code>doFinally()</code>, if the tag implements * <code>TryCatchFinally</code>. * @param tag the tag */ public static void handleFinally(Tag tag) { if(tag instanceof TryCatchFinally) { ((TryCatchFinally)tag).doFinally(); } }
/** * Handles the finally block of tag lifecycle processing. * Invokes <code>doFinally()</code>, if the tag implements * <code>TryCatchFinally</code>. * @param tag the tag */ public static void handleFinally(Tag tag) { if(tag instanceof TryCatchFinally) { ((TryCatchFinally)tag).doFinally(); } }
/** * Handles the finally block of tag lifecycle processing. * Invokes <code>doFinally()</code>, if the tag implements * <code>TryCatchFinally</code>. * @param tag the tag */ public static void handleFinally(Tag tag) { if(tag instanceof TryCatchFinally) { ((TryCatchFinally)tag).doFinally(); } }
public void doFinallyProcess() { Tag tag = getLoadedTag(); if (tag instanceof TryCatchFinally) { TryCatchFinally tryCatch = (TryCatchFinally) tag; try { tryCatch.doFinally(); } finally { releaseLoadedTag(); } } else { throw new IllegalStateException(); } }
public void close() { if(needPop) { pageContext.popWriter(); } pageContext.popTopTag(); try { if(isTryCatchFinally) { ((TryCatchFinally)tag).doFinally(); } // No pooling yet tag.release(); } finally { if(needDoublePop) { pageContext.popWriter(); } } }
@Override public void close() { if (closed) { return; } closed = true; if (needPop) { pageContext.popWriter(); } pageContext.popTopTag(); try { if (isTryCatchFinally) { ((TryCatchFinally) tag).doFinally(); } // No pooling yet tag.release(); } finally { if (needDoublePop) { pageContext.popWriter(); } } }
@Override public void close() { if (closed) { return; } closed = true; if (needPop) { pageContext.popWriter(); } pageContext.popTopTag(); try { if (isTryCatchFinally) { ((TryCatchFinally) tag).doFinally(); } // No pooling yet tag.release(); } finally { if (needDoublePop) { pageContext.popWriter(); } } }