@Override public int doEndTag() throws JspException { try { final ASN1InputStream decoder = new ASN1InputStream(value); ASN1Primitive primitive = decoder.readObject(); while (primitive != null && !(primitive instanceof ASN1Null)) { pageContext.getOut().write(doPrimitive(primitive)); primitive = decoder.readObject(); } } catch (Exception ex) { throw new JspException(ex.getMessage()); } return super.doEndTag(); }
public int doEndTag() throws JspException { // do the super thing int i = super.doEndTag(); // reset the property property = originalProperty; // complete return i; }
public int doEndTag() throws JspException { stack = null; return super.doEndTag(); }
@Override public int doEndTag() throws JspException { int returnVal = super.doEndTag(); initVariables(); return returnVal; }
@SuppressWarnings("unchecked") @Override public int doEndTag() throws JspException { ((Map<String, String>) pageContext.getAttribute(IncludeTag.PARAMETERS)) .put(name, bodyContent.getString()); return super.doEndTag(); }
@Override public int doEndTag() throws JspException { try { String value = this.extractValue(); if (null == value) { return super.doEndTag(); } IParameterParentTag parentTag = (IParameterParentTag) findAncestorWithClass(this, IParameterParentTag.class); parentTag.addParameter(this.getName(), value); } catch (Throwable t) { _logger.error("Error closing tag", t); //ApsSystemUtils.logThrowable(t, this, "doEndTag"); throw new JspException("Error closing tag ", t); } return super.doEndTag(); }
/** * Cleanup after tag is finished * @return EVAL_PAGE */ public int doEndTag() throws JspException { offset = 0; numberOfRows = 0; name = null; collection = null; contentId = null; contentObject = null; pageContext.removeAttribute(AttributeTagHelper.REPEATER_OFFSET_PAGE_VAR + name); pageContext.removeAttribute(AttributeTagHelper.REPEATER_CONTENT_OBJ_PAGE_VAR + name); return super.doEndTag(); }
@SuppressWarnings("unchecked") @Override public int doEndTag() throws JspException { setParamsMap((Map<String, String>) pageContext.getAttribute(PARAMETERS)); try { include(); } catch (MalformedURLException e) { throw new JspException("Bad include URL: " + url, e); } catch (ProtocolException e){ throw new JspException("Bad protocol: " + url, e); } catch (IOException e) { throw new JspException("Problem with connection to " + url, e); } return super.doEndTag(); }
public int doEndTag() throws JspException { String escaped = escape( getBodyContent().getString() ); pageContext.getRequest().setAttribute(getVar(),escaped); return super.doEndTag(); }
@Override public int doEndTag() throws JspException { try { final ASN1InputStream decoder = new ASN1InputStream(value); ASN1Primitive primitive = decoder.readObject(); while (primitive != null && !(primitive instanceof ASN1Null)) { pageContext.getOut().write(doPrimitive(primitive)); primitive = decoder.readObject(); } } catch (Exception ex) { throw new JspException(ex.getMessage()); } return super.doEndTag(); }
@Override public int doEndTag() throws JspException { try { String value = this.extractValue(); if (null == value) { return super.doEndTag(); } IParameterParentTag parentTag = (IParameterParentTag) findAncestorWithClass(this, IParameterParentTag.class); parentTag.addParameter(this.getName(), value); } catch (Throwable t) { ApsSystemUtils.logThrowable(t, this, "doEndTag"); throw new JspException("Error closing tag ", t); } return super.doEndTag(); }
@Override public int doEndTag() throws JspException { MetawidgetTag tagMetawidget = (MetawidgetTag) findAncestorWithClass( this, MetawidgetTag.class ); if ( tagMetawidget == null ) { throw new JspTagException( getClass() + " must be used within " + MetawidgetTag.class ); } mSavedBodyContent = bodyContent.getString(); tagMetawidget.setFacet( mName, this ); return super.doEndTag(); } }
public int doEndTag() throws JspException { try { String body = bodyContent.getString(); bodyContent.clearBody(); // Provide the path so that links still work - even if the page is not requested by the "usual" URL final HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); bodyContent.getEnclosingWriter().write(JiraKeyUtils.linkBugKeys(body)); } catch (IOException e) { throw new JspException("IOException: " + e); } return super.doEndTag(); } }
@Override public int doEndTag() throws JspException { MetawidgetTag tagMetawidget = (MetawidgetTag) findAncestorWithClass( this, MetawidgetTag.class ); if ( tagMetawidget == null ) { throw new JspTagException( getClass() + " must be used within " + MetawidgetTag.class ); } if ( bodyContent == null ) { mSavedBodyContent = null; } else { mSavedBodyContent = bodyContent.getString(); } tagMetawidget.setStub( mPath, this ); return super.doEndTag(); }
public int doEndTag() throws JspException { try { String body = bodyContent.getString(); bodyContent.clearBody(); bodyContent.getEnclosingWriter().write(TextUtils.plainTextToHtml(body)); } catch (IOException e) { throw new JspException("IOException: " + e); } return super.doEndTag(); } }
@Override public int doEndTag() throws JspException { mPipeline.configureOnce(); try { mPipeline.buildWidgets( inspect() ); } catch ( Exception e ) { throw MetawidgetException.newException( e ); } return super.doEndTag(); }
public int doEndTag() throws JspException { try { String body = bodyContent.getString(); bodyContent.clearBody(); bodyContent.getEnclosingWriter().write(TextUtils.htmlEncode(body)); } catch (IOException e) { throw new JspException("IOException: " + e); } return super.doEndTag(); } }
@Override public int doEndTag() throws JspException { BodyContent bodyContent = getBodyContent(); String content = bodyContent.getString(); XmlCompressor compressor = new XmlCompressor(); compressor.setEnabled(enabled); compressor.setRemoveComments(removeComments); compressor.setRemoveIntertagSpaces(removeIntertagSpaces); try { bodyContent.clear(); bodyContent.append(compressor.compress(content)); bodyContent.writeOut(pageContext.getOut()); } catch (IOException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } return super.doEndTag(); }
@Override public int doEndTag() throws JspException { BodyContent bodyContent = getBodyContent(); String content = bodyContent.getString(); try { if (enabled) { // call YUICompressor YuiCssCompressor compressor = new YuiCssCompressor(); compressor.setLineBreak(yuiCssLineBreak); String result = compressor.compress(content); bodyContent.clear(); bodyContent.append(result); bodyContent.writeOut(pageContext.getOut()); } else { bodyContent.clear(); bodyContent.append(content); bodyContent.writeOut(pageContext.getOut()); } } catch (IOException e) { logger.error("", e); } return super.doEndTag(); }
@Override public int doEndTag() throws JspException { BodyContent bodyContent = getBodyContent(); String content = bodyContent.getString(); XmlCompressor compressor = new XmlCompressor(); compressor.setEnabled(enabled); compressor.setRemoveComments(removeComments); compressor.setRemoveIntertagSpaces(removeIntertagSpaces); try { bodyContent.clear(); bodyContent.append(compressor.compress(content)); bodyContent.writeOut(pageContext.getOut()); } catch (IOException e) { logger.error("", e); } return super.doEndTag(); }