Tag ancestor = findAncestorWithClass(this, I_CmsResourceContainer.class); if (ancestor == null) { if (isScopeVarSet()) { if (contentContainer instanceof CmsJspTagContentLoad) { storeContentInfoBean((CmsJspTagContentLoad)contentContainer); } else if (contentContainer instanceof CmsJspTagResourceLoad) { storeContentInfoBean((CmsJspTagResourceLoad)contentContainer); tagContent = resolveMacros(m_value);
/** * @see javax.servlet.jsp.tagext.Tag#doEndTag() */ @Override public int doEndTag() { if (OpenCms.getSystemInfo().getServletContainerSettings().isReleaseTagsAfterEnd()) { // need to release manually, JSP container may not call release as required (happens with Tomcat) release(); } return EVAL_PAGE; }
/** * Stores the container's content info bean in the page context.<p> * * @param container the parent container */ protected void storeContentInfoBean(CmsJspTagResourceLoad container) { CmsContentInfoBean contentInfoBean = container.getContentInfoBean(); contentInfoBean.setPageSize(container.getContentInfoBean().getPageSize()); contentInfoBean.setPageIndex(container.getContentInfoBean().getPageIndex()); contentInfoBean.setResultSize(container.getContentInfoBean().getResultSize()); storeAttribute(contentInfoBean); } }
/** * Stores the container's content info bean in the page context.<p> * * @param container the parent container */ protected void storeContentInfoBean(CmsJspTagContentLoad container) { CmsContentInfoBean contentInfoBean = container.getContentInfoBean(); contentInfoBean.setPageSize(container.getContentInfoBean().getPageSize()); contentInfoBean.setPageIndex(container.getContentInfoBean().getPageIndex()); contentInfoBean.setResultSize(container.getContentInfoBean().getResultSize()); storeAttribute(contentInfoBean); } }
Tag ancestor = findAncestorWithClass(this, I_CmsXmlContentContainer.class); if (ancestor == null) { if (isScopeVarSet()) { storeContentInfoBean((CmsJspTagContentLoad)contentContainer); tagContent = resolveMacros(m_value);
/** * @see javax.servlet.jsp.tagext.Tag#doEndTag() */ @Override public int doEndTag() { if (OpenCms.getSystemInfo().getServletContainerSettings().isReleaseTagsAfterEnd()) { // need to release manually, JSP container may not call release as required (happens with Tomcat) release(); } return EVAL_PAGE; }