tag.setJspBody(new JspFragment() { @Override public JspContext getJspContext() {
/** * Delegates to wrapped tag. */ public void setJspBody(JspFragment jspBody) { this.jspBody = jspBody; tag.setJspBody(jspBody); }
/** * Constructor for a tag with the specified attribute map. * @param tag the tag * @param jspContext the corresponding <code>JspContext</code> * @param attributes the attribute map */ public NestedSimpleTag(SimpleTag tag, JspContext jspContext, Map attributes) { this.tag = tag; this.jspContext = jspContext; jspBody = new MockJspFragment(jspContext, tag); tag.setJspContext(jspContext); tag.setJspBody(jspBody); this.attributes = attributes; }
/** * Executes a {@link SimpleTag}. * * @param context The directive context. * @param node The main node of the directive. * @param pageContext The page context. * @param tag The tag to execute. * @throws JspException If something goes wrong. * @throws IOException If something goes wrong. */ public static void executeSimpleTag(InternalContextAdapter context, Node node, PageContext pageContext, SimpleTag tag) throws JspException, IOException { tag.setJspBody(new VelocityJspFragment(pageContext, (ASTBlock) node .jjtGetChild(1), context)); tag.doTag(); }
int childProcessorSize = getChildProcessorSize(); if (childProcessorSize > 0) { simpleTag.setJspBody( new ProcessorFragment(simpleTagWrapper, this, topLevelPage));
tag.setJspBody(new JspFragment() { @Override public JspContext getJspContext() {
tag.setJspBody(new JspFragment() { @Override public JspContext getJspContext() {
tag.setJspBody(new JspFragment() { public JspContext getJspContext() { return pageContext;