Class CmsJspTagContentLoad

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, I_CmsResourceContainer, I_CmsXmlContentContainer

Implementation of the <cms:contentload/> tag, used to access and display XML content item information from the VFS.

Since version 7.0.2 it is also possible to store the results of the content load in the JSP context using a CmsJspContentLoadBean. Using this bean the loaded XML content objects can be accessed directly using the JSP EL and the JSTL. To use this feature, you need to add the var (and optionally the scope) parameter to the content load tag. For example, if a parameter like var="myVarName" is provided, then the result of the content load is stored in the JSP context variable myVarName with an instance of a CmsJspContentLoadBean.

Since:
6.0.0
See Also:
  • Constructor Details

    • CmsJspTagContentLoad

      Empty constructor, required for JSP tags.

    • CmsJspTagContentLoad

      public CmsJspTagContentLoad(I_CmsXmlContentContainer container, javax.servlet.jsp.PageContext context, String collectorName, String collectorParam, Locale locale, boolean editable) throws javax.servlet.jsp.JspException
      Constructor used when using contentload from scriptlet code.

      Parameters:
      container - the parent content container (could be a preloader)
      context - the JSP page context
      collectorName - the collector name to use
      collectorParam - the collector param to use
      locale - the locale to use
      editable - indicates if "direct edit" support is wanted
      Throws:
      javax.servlet.jsp.JspException - in case something goes wrong
    • CmsJspTagContentLoad

      public CmsJspTagContentLoad(I_CmsXmlContentContainer container, javax.servlet.jsp.PageContext context, String collectorName, String collectorParam, String pageIndex, String pageSize, Locale locale, boolean editable) throws javax.servlet.jsp.JspException
      Constructor used when using contentload from scriptlet code.

      Parameters:
      container - the parent content container (could be a preloader)
      context - the JSP page context
      collectorName - the collector name to use
      collectorParam - the collector param to use
      pageIndex - the display page index (may contain macros)
      pageSize - the display page size (may contain macros)
      locale - the locale to use
      editable - indicates if "direct edit" support is wanted
      Throws:
      javax.servlet.jsp.JspException - in case something goes wrong
    • CmsJspTagContentLoad

      public CmsJspTagContentLoad(I_CmsXmlContentContainer container, javax.servlet.jsp.PageContext context, String collectorName, String collectorParam, String pageIndex, String pageSize, Locale locale, CmsDirectEditMode editMode) throws javax.servlet.jsp.JspException
      Constructor used when using contentload from scriptlet code.

      Parameters:
      container - the parent content container (could be a preloader)
      context - the JSP page context
      collectorName - the collector name to use
      collectorParam - the collector param to use
      pageIndex - the display page index (may contain macros)
      pageSize - the display page size (may contain macros)
      locale - the locale to use
      editMode - indicates which "direct edit" mode is wanted
      Throws:
      javax.servlet.jsp.JspException - in case something goes wrong
  • Method Details