/** * Release state. * * @see Tag#release */ public void release() { bodyContent = null; super.release(); }
/** * Default processing of the end tag returning EVAL_PAGE. * * @return EVAL_PAGE * @throws JspException if an error occurred while processing this tag * @see Tag#doEndTag */ public int doEndTag() throws JspException { return super.doEndTag(); }
if (this.value != null) { EditorAwareTag tag = (EditorAwareTag) TagSupport.findAncestorWithClass(this, EditorAwareTag.class); if (tag == null) { throw new JspException("TransformTag can only be used within EditorAwareTag (e.g. BindTag)");
@Override public int doStartTag() throws JspException { Invocation invocation = InvocationUtils.getCurrentThreadInvocation(); if (invocation != null) { String msg = invocation.getFlash().get(key); if (logger.isDebugEnabled()) { logger.debug("getFlashMessage: " + key + "=" + msg); } if (msg != null) { try { if (StringUtils.isNotEmpty(prefix)) { pageContext.getOut().print(prefix); } pageContext.getOut().print(msg); if (StringUtils.isNotEmpty(suffix)) { pageContext.getOut().print(suffix); } } catch (IOException e) { throw new JspException("", e); } } } return super.doStartTag(); } }
/** * Process the start tag. * * @exception JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); }
/** * Release state. * * @see Tag#release */ public void release() { bodyContent = null; super.release(); }
/** * Default processing of the end tag returning EVAL_PAGE. * * @return EVAL_PAGE * @throws JspException if an error occurred while processing this tag * @see Tag#doEndTag */ public int doEndTag() throws JspException { return super.doEndTag(); }
if (this.value != null) { EditorAwareTag tag = (EditorAwareTag) TagSupport.findAncestorWithClass(this, EditorAwareTag.class); if (tag == null) { throw new JspException("TransformTag can only be used within EditorAwareTag (e.g. BindTag)");
@Override public int doStartTag() throws JspException { try { String currentCounter = this.getCurrentIndex(); this.pageContext.getOut().print(currentCounter); } catch (Throwable t) { _logger.error("error creating (or modifying) counter", t); //ApsSystemUtils.logThrowable(t, this, "doStartTag", "error creating (or modifying) counter"); throw new JspException("error creating (or modifying) counter", t); } return super.doStartTag(); }
/** * <p>Release any resources allocated by this tag instance. */ public void release() { super.release(); this.name = null; }
/** * Default processing of the end tag returning EVAL_PAGE. * * @return EVAL_PAGE * @throws JspException if an error occurred while processing this tag * @see Tag#doEndTag */ public int doEndTag() throws JspException { return super.doEndTag(); }
public static Node getContext(Tag t) throws JspTagException { ForEachTag xt = (ForEachTag) TagSupport.findAncestorWithClass( t, ForEachTag.class); if (xt == null) return null; else return (xt.getContext()); }
@Override public int doStartTag() throws JspException { try { Set<String> groupCodes = this.getAllowedGroups(); this.pageContext.setAttribute(this.getVar(), groupCodes); return super.doStartTag(); } catch (Throwable t) { _logger.error("Error during tag initialization", t); throw new JspException("Error during tag initialization ", t); } }
/** * @deprecated */ @Override public void release() { super.release(); _name = null; _value = null; }
/** * Default processing of the end tag returning EVAL_PAGE. * * @return EVAL_PAGE * @throws JspException * if an error occurred while processing this tag * @see Tag#doEndTag */ @Override public int doEndTag() throws JspException { return super.doEndTag(); }
public static Node getContext(Tag t) throws JspTagException { ForEachTag xt = (ForEachTag) TagSupport.findAncestorWithClass( t, ForEachTag.class); if (xt == null) return null; else return (xt.getContext()); }
@Override public int doStartTag() throws JspException { try { String currentCounter = this.getCurrentIndex(); this.pageContext.getOut().print(currentCounter); } catch (Throwable t) { ApsSystemUtils.logThrowable(t, this, "doStartTag", "error creating (or modifying) counter"); throw new JspException("error creating (or modifying) counter", t); } return super.doStartTag(); }
/** * Release state. * * @see Tag#release */ public void release() { bodyContent = null; super.release(); }
@Override public int doEndTag() throws JspException { associationId = -1; cssClass = defaultCssClass; separator = defaultSeparator; skipFirst = false; return super.doEndTag(); }
public static Node getContext(Tag t) throws JspTagException { ForEachTag xt = (ForEachTag) TagSupport.findAncestorWithClass( t, ForEachTag.class); if (xt == null) return null; else return (xt.getContext()); }