Name

TagSupport

Synopsis

Class Name:

javax.servlet.jsp.tagext.TagSupport

Extends:

None

Implements:

Tag, java.io.Serializable

Implemented by:

Internal container-dependent class. Most containers use the reference implementation of the class (developed in the Apache Jakarta project).

Description

TagSupport is a support class that provides default implementations of all Tag interface methods. It’s intended to be used as a superclass for tag handlers that do not need access to the body contents of the corresponding custom action element.

Class Summary

public class TagSupport implements Tag, java.io.Serializable {
  // Constructor
  public TagSupport( );

  // Methods
  public int doEndTag( ) throws JspException;
  public int doStartTag( ) throws JspException;
  public static final Tag findAncestorWithClass(Tag from, Class klass);
  public String getId( );
  public Tag getParent( );
  public Object getValue(String k);
  public java.util.Enumeration getValues( );
  public void release( );
  public void removeValue(String k);
  public void setPageContext(PageContext pageContext);
  public void setId(String id);
  public void setParent(Tag t);
  public void setValue(String k, Object o);
}

Constructor

public TagSupport( )

Creates a new instance with the specified name and value.

Methods

public int doEndTag( ) throws JspException

Returns EVAL_PAGE.

public int doStartTag( ) throws JspException

Returns SKIP_BODY.

public static final Tag findAncestorWithClass(Tag from, Class klass)

Returns the instance of the specified class, ...

Get Java Server Pages now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.