@Override public int doStartTag() throws JspException { try { XPathContext context = XalanUtil.getContext(this, pageContext); XObject result = select.execute(context, context.getCurrentNode(), null); pageContext.setAttribute(var, XalanUtil.coerceToJava(result), scope); return SKIP_BODY; } catch (TransformerException e) { throw new JspTagException(e); } }
@Override protected boolean condition() throws JspTagException { XPathContext context = XalanUtil.getContext(this, pageContext); try { return select.bool(context, context.getCurrentNode(), null); } catch (TransformerException e) { throw new JspTagException(e); } }
@Override protected boolean condition() throws JspTagException { XPathContext context = XalanUtil.getContext(this, pageContext); try { return select.bool(context, context.getCurrentNode(), null); } catch (TransformerException e) { throw new JspTagException(e); } }
@Override protected boolean condition() throws JspTagException { XPathContext context = XalanUtil.getContext(this, pageContext); try { return select.bool(context, context.getCurrentNode(), null); } catch (TransformerException e) { throw new JspTagException(e); } }
@Override public int doStartTag() throws JspException { try { XPathContext context = XalanUtil.getContext(this, pageContext); XObject result = select.execute(context, context.getCurrentNode(), null); pageContext.setAttribute(var, XalanUtil.coerceToJava(result), scope); return SKIP_BODY; } catch (TransformerException e) { throw new JspTagException(e); } }
@Override protected boolean condition() throws JspTagException { XPathContext context = XalanUtil.getContext(this, pageContext); try { return select.bool(context, context.getCurrentNode(), null); } catch (TransformerException e) { throw new JspTagException(e); } }
@Override public int doStartTag() throws JspException { try { XPathContext context = XalanUtil.getContext(this, pageContext); String result = select.execute(context, context.getCurrentNode(), null).str(); EscapeXML.emit(result, escapeXml, pageContext.getOut()); return SKIP_BODY; } catch (IOException ex) { throw new JspTagException(ex.toString(), ex); } catch (TransformerException e) { throw new JspTagException(e); } }
@Override public int doStartTag() throws JspException { try { XPathContext context = XalanUtil.getContext(this, pageContext); String result = select.execute(context, context.getCurrentNode(), null).str(); EscapeXML.emit(result, escapeXml, pageContext.getOut()); return SKIP_BODY; } catch (IOException ex) { throw new JspTagException(ex.toString(), ex); } catch (TransformerException e) { throw new JspTagException(e); } }
@Override protected void prepare() throws JspTagException { context = XalanUtil.getContext(this, pageContext); try { XObject nodes = select.execute(context, context.getCurrentNode(), null); // create an iterator over the returned nodes and push into the context DTMIterator iterator = nodes.iter(); context.pushContextNodeList(iterator); } catch (TransformerException e) { throw new JspTagException(e); } }
@Override protected void prepare() throws JspTagException { context = XalanUtil.getContext(this, pageContext); try { XObject nodes = select.execute(context, context.getCurrentNode(), null); // create an iterator over the returned nodes and push into the context DTMIterator iterator = nodes.iter(); context.pushContextNodeList(iterator); } catch (TransformerException e) { throw new JspTagException(e); } }