List of usage examples for org.apache.commons.jelly JellyTagException JellyTagException
public JellyTagException(String message, Throwable cause)
From source file:com.cyclopsgroup.waterview.jelly.IncludeTag.java
/** * Override or implement method of parent class or interface * * @see org.apache.commons.jelly.Tag#doTag(org.apache.commons.jelly.XMLOutput) *///from w w w .j a v a 2 s . c om public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { TagUtils.requireAttribute("category", category); TagUtils.requireAttribute("page", page); RuntimeRenderer renderer = (RuntimeRenderer) context.getVariable(RuntimeRenderer.NAME); try { renderer.render(category, page); } catch (Exception e) { throw new JellyTagException("Render page [" + category + "/" + page + "] exception", e); } }
From source file:hudson.util.HyperlinkingOutTag.java
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { String text = value.evaluateAsString(context); if (text != null) { try {//from w w w .j av a 2s.c o m output.write(text.replace("&", "&").replace("<", "<").replaceAll("\\b(https?://[^\\s)>]+)", "<a href=\"$1\">$1</a>")); } catch (SAXException e) { throw new JellyTagException("could not write the XMLOutput", e); } } }