Class SQLQueryTag

  • All Implemented Interfaces:
    JcmsConstants, JaliosConstants, java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

    public class SQLQueryTag
    extends javax.servlet.jsp.tagext.BodyTagSupport
    implements JcmsConstants
    This tag performs a SQL query and provides the result set as a SQLQueryResult
    Since:
    jcms-5.5.0
    See Also:
    SQLQueryResult, Serialized Form
    • Constructor Detail

      • SQLQueryTag

        public SQLQueryTag()
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
      • setDataSource

        public void setDataSource​(java.lang.String dataSource)
      • setQuery

        public void setQuery​(java.lang.String query)
      • setMaxRows

        public void setMaxRows​(int maxRows)
      • doStartTag

        public int doStartTag()
                       throws javax.servlet.jsp.JspException
        Specified by:
        doStartTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
        Throws:
        javax.servlet.jsp.JspException
      • doAfterBody

        public int doAfterBody()
                        throws javax.servlet.jsp.JspException
        Specified by:
        doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
        Overrides:
        doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
        Throws:
        javax.servlet.jsp.JspException