Class TableTag

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
Direct Known Subclasses:
TableTag

public class TableTag extends ElementTag
A JSP tag to render HTML tables.
Since:
1.0
Version:
5.0
Author:
Luke
See Also:
  • Constructor Details

    • TableTag

      public TableTag()
      Creates a new Table tag.
  • Method Details

    • setWidth

      public void setWidth(String width)
      Sets the WIDTH value for this table.
      Parameters:
      width - the width attribute value
    • doStartTag

      public int doStartTag() throws jakarta.servlet.jsp.JspException
      Opens this TABLE element by writing a >TABLE< tag.
      Specified by:
      doStartTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doStartTag in class ElementTag
      Throws:
      jakarta.servlet.jsp.JspException - if an error occurs
    • doEndTag

      public int doEndTag() throws jakarta.servlet.jsp.JspException
      Closes this TABLE element by writing a >/TABLE< tag.
      Specified by:
      doEndTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class jakarta.servlet.jsp.tagext.TagSupport
      Throws:
      jakarta.servlet.jsp.JspException - if an I/O error occurs