/** * Calls the <code>doAfterBody</code> method of the current tag. * @return the result of <code>doAfterBody</code> * @throws <code>RuntimeException</code>, if the tag * is a simple tag */ public int doAfterBody() { if(null == tag) { throw new RuntimeException("No current tag set"); } /*if(isSimpleTag()) { throw new RuntimeException("Cannot call doAfterBody() on simple tags"); }*/ try { return ((TagSupport)tag).doAfterBody(); } catch(JspException exc) { throw new NestedApplicationException(exc); } }
/** * Calls the <code>doAfterBody</code> method of the current tag. * @return the result of <code>doAfterBody</code> * @throws <code>RuntimeException</code>, if the tag * is a simple tag */ public int doAfterBody() { if(null == tag) { throw new RuntimeException("No current tag set"); } /*if(isSimpleTag()) { throw new RuntimeException("Cannot call doAfterBody() on simple tags"); }*/ try { return ((TagSupport)tag).doAfterBody(); } catch(JspException exc) { throw new NestedApplicationException(exc); } }
private void loopTag(TagSupport tag, JSPTreeNodeIF curNode) throws JspException, IOException { // loop as long as tag says so int token; do { runTag(tag, curNode); token = tag.doAfterBody(); } while (token == BodyTagSupport.EVAL_BODY_AGAIN); if (token != BodyTagSupport.SKIP_BODY) throw new OntopiaRuntimeException("Internal error: unknown doAfterBody token: " + token); }
/** * Calls the <code>doAfterBody</code> method of the current tag. * @return the result of <code>doAfterBody</code> * @throws <code>RuntimeException</code>, if the tag * is a simple tag */ public int doAfterBody() { if(null == tag) { throw new RuntimeException("No current tag set"); } if(isSimpleTag()) { throw new RuntimeException("Cannot call doAfterBody() on simple tags"); } try { return ((TagSupport)tag).doAfterBody(); } catch(JspException exc) { throw new NestedApplicationException(exc); } }