pageContext.pushWriter(new JspWriterAdapter(env.getOut())); try { tag.setJspContext(pageContext); JspTag parentTag = (JspTag) pageContext.peekTopTag(JspTag.class); if (parentTag != null) {
public void setPageContext(PageContext context) { _context = context; _simpleTag.setJspContext(context); }
/** * Delegates to wrapped tag. Also calls <code>setJspContext</code> * on the body fragment, if the body fragment is an instance of * {@link com.mockrunner.mock.web.MockJspFragment} */ public void setJspContext(JspContext jspContext) { this.jspContext = jspContext; tag.setJspContext(jspContext); if(null != jspBody && jspBody instanceof MockJspFragment) { ((MockJspFragment)jspBody).setJspContext(jspContext); } }
/** * Sets the <code>JspContext</code>. Also calls <code>setJspContext</code> * (or <code>setPageContext</code>) for all child tags. * <code>setPageContext</code> is only called if the specified <code>JspContext</code> * is an instance of <code>PageContext</code>. * @param jspContext the <code>JspContext</code> */ public void setJspContext(JspContext jspContext) { this.jspContext = jspContext; for (Object child : childs) { if (child instanceof Tag && jspContext instanceof PageContext) { ((Tag) child).setPageContext((PageContext) jspContext); } else if (child instanceof SimpleTag) { ((SimpleTag) child).setJspContext(jspContext); } } }
/** * 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; }
/** * Delegates to wrapped tag. Also calls <code>setPageContext</code> * for all child tags. */ public void setPageContext(PageContext pageContext) { this.pageContext = pageContext; tag.setPageContext(pageContext); for (Object child : childs) { if (child instanceof Tag) { ((Tag) child).setPageContext(pageContext); } else if (child instanceof SimpleTag) { ((SimpleTag) child).setJspContext(pageContext); } } }
/** * Delegates to wrapped tag. Also calls <code>setPageContext</code> * for all child tags. */ public void setPageContext(PageContext pageContext) { this.pageContext = pageContext; tag.setPageContext(pageContext); for (Object child : childs) { if (child instanceof Tag) { ((Tag) child).setPageContext(pageContext); } else if (child instanceof SimpleTag) { ((SimpleTag) child).setJspContext(pageContext); } } }
tag.setJspContext(context);
pageContext.pushWriter(new JspWriterAdapter(env.getOut())); try { tag.setJspContext(pageContext); JspTag parentTag = (JspTag) pageContext.peekTopTag(JspTag.class); if (parentTag != null) {
pageContext.pushWriter(new JspWriterAdapter(env.getOut())); try { tag.setJspContext(pageContext); JspTag parentTag = (JspTag) pageContext.peekTopTag(JspTag.class); if (parentTag != null) {
pageContext.pushWriter(new JspWriterAdapter(env.getOut())); try { tag.setJspContext(pageContext); JspTag parentTag = (JspTag)pageContext.peekTopTag(JspTag.class); if(parentTag != null) {