Class SetDataSourceTagSupport

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
    Direct Known Subclasses:
    SetDataSourceTag, SetDataSourceTag, SetDataSourceTag

    public class SetDataSourceTagSupport
    extends javax.servlet.jsp.tagext.TagSupport

    Tag handler for <SetDataSource> in JSTL, used to create a simple DataSource for prototyping.

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Object dataSource  
      protected boolean dataSourceSpecified  
      protected java.lang.String driverClassName  
      protected java.lang.String jdbcURL  
      protected java.lang.String password  
      private int scope  
      protected java.lang.String userName  
      private java.lang.String var  
      • Fields inherited from class javax.servlet.jsp.tagext.TagSupport

        id, pageContext
      • Fields inherited from interface javax.servlet.jsp.tagext.IterationTag

        EVAL_BODY_AGAIN
      • Fields inherited from interface javax.servlet.jsp.tagext.Tag

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int doStartTag()  
      private void init()  
      void release()  
      void setScope​(java.lang.String scope)
      Setter method for the scope of the variable to hold the result.
      void setVar​(java.lang.String var)  
      • Methods inherited from class javax.servlet.jsp.tagext.TagSupport

        doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • dataSource

        protected java.lang.Object dataSource
      • dataSourceSpecified

        protected boolean dataSourceSpecified
      • jdbcURL

        protected java.lang.String jdbcURL
      • driverClassName

        protected java.lang.String driverClassName
      • userName

        protected java.lang.String userName
      • password

        protected java.lang.String password
      • scope

        private int scope
      • var

        private java.lang.String var
    • Constructor Detail

      • SetDataSourceTagSupport

        public SetDataSourceTagSupport()
    • Method Detail

      • init

        private void init()
      • setScope

        public void setScope​(java.lang.String scope)
        Setter method for the scope of the variable to hold the result.
      • setVar

        public void setVar​(java.lang.String var)
      • 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.TagSupport
        Throws:
        javax.servlet.jsp.JspException
      • release

        public void release()
        Specified by:
        release in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        release in class javax.servlet.jsp.tagext.TagSupport