Class OddEvenTag

  • All Implemented Interfaces:
    Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

    public class OddEvenTag
    extends javax.servlet.jsp.tagext.TagSupport
    alterneert uitvoertekst op basis van iteratie loop

    Parameters:

    • loop - variabele met indexId van iteratie [loop]
    • odd - uitvoer bij oneven loop []
    • even - uitvoer bij even loop []

    Version:
    $Revision: 1.1 $ $Date: 2003/06/04 21:43:08 $
    Author:
    Chris van Lith
    See Also:
    Serialized Form
    • Constructor Detail

      • OddEvenTag

        public OddEvenTag()
    • Method Detail

      • otherDoStartTagOperations

        public void otherDoStartTagOperations()
      • theBodyShouldBeEvaluated

        public boolean theBodyShouldBeEvaluated()
      • otherDoEndTagOperations

        public void otherDoEndTagOperations()
                                     throws javax.servlet.jsp.JspException
        Throws:
        javax.servlet.jsp.JspException
      • shouldEvaluateRestOfPageAfterEndTag

        public boolean shouldEvaluateRestOfPageAfterEndTag()
        Fill in this method to determine if the rest of the JSP page should be generated after this tag is finished. Called from doEndTag().
      • doStartTag

        public int doStartTag()
                       throws javax.servlet.jsp.JspException,
                              javax.servlet.jsp.JspException
        .//GEN-BEGIN:doStartTag This method is called when the JSP engine encounters the start tag, after the attributes are processed. Scripting variables (if any) have their values set here.
        Specified by:
        doStartTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doStartTag in class javax.servlet.jsp.tagext.TagSupport
        Returns:
        EVAL_BODY_TAG if the JSP engine should evaluate the tag body, otherwise return SKIP_BODY. This method is automatically generated. Do not modify this method. Instead, modify the methods that this method calls.
        Throws:
        javax.servlet.jsp.JspException
      • doEndTag

        public int doEndTag()
                     throws javax.servlet.jsp.JspException,
                            javax.servlet.jsp.JspException
        .//GEN-BEGIN:doEndTag This method is called after the JSP engine finished processing the tag.
        Specified by:
        doEndTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doEndTag in class javax.servlet.jsp.tagext.TagSupport
        Returns:
        EVAL_PAGE if the JSP engine should continue evaluating the JSP page, otherwise return SKIP_PAGE. This method is automatically generated. Do not modify this method. Instead, modify the methods that this method calls.
        Throws:
        javax.servlet.jsp.JspException
      • getLoop

        public String getLoop()
        Getter for property loop.
        Returns:
        Value of property loop.
      • setLoop

        public void setLoop​(String loop)
        Setter for property loop.
        Parameters:
        loop - New value of property loop.
      • getOdd

        public String getOdd()
        Getter for property odd.
        Returns:
        Value of property odd.
      • setOdd

        public void setOdd​(String odd)
        Setter for property odd.
        Parameters:
        odd - New value of property odd.
      • getEven

        public String getEven()
        Getter for property even.
        Returns:
        Value of property even.
      • setEven

        public void setEven​(String even)
        Setter for property even.
        Parameters:
        even - New value of property even.