congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
TagSupport
Code IndexAdd Tabnine to your IDE (free)

How to use
TagSupport
in
javax.servlet.jsp.tagext

Best Java code snippets using javax.servlet.jsp.tagext.TagSupport (Showing top 20 results out of 909)

origin: javax.servlet.jsp/jsp-api

/**
 * Release state.
 *
 * @see Tag#release
 */
public void release() {
bodyContent = null;
super.release();
}
origin: javax.servlet.jsp/jsp-api

/**
 * Default processing of the end tag returning EVAL_PAGE.
 *
 * @return EVAL_PAGE
 * @throws JspException if an error occurred while processing this tag
 * @see Tag#doEndTag
 */
public int doEndTag() throws JspException {
return super.doEndTag();
}
origin: spring-projects/spring-framework

if (this.value != null) {
  EditorAwareTag tag = (EditorAwareTag) TagSupport.findAncestorWithClass(this, EditorAwareTag.class);
  if (tag == null) {
    throw new JspException("TransformTag can only be used within EditorAwareTag (e.g. BindTag)");
origin: paoding-code/paoding-rose

  @Override
  public int doStartTag() throws JspException {
    Invocation invocation = InvocationUtils.getCurrentThreadInvocation();
    if (invocation != null) {
      String msg = invocation.getFlash().get(key);
      if (logger.isDebugEnabled()) {
        logger.debug("getFlashMessage: " + key + "=" + msg);
      }
      if (msg != null) {
        try {
          if (StringUtils.isNotEmpty(prefix)) {
            pageContext.getOut().print(prefix);
          }
          pageContext.getOut().print(msg);
          if (StringUtils.isNotEmpty(suffix)) {
            pageContext.getOut().print(suffix);
          }
        } catch (IOException e) {
          throw new JspException("", e);
        }
      }
    }
    return super.doStartTag();
  }
}
origin: struts/struts-el

/**
 * Process the start tag.
 *
 * @exception JspException if a JSP exception has occurred
 */
public int doStartTag() throws JspException {
  evaluateExpressions();
  return (super.doStartTag());
}
 
origin: javax.servlet.jsp/javax.servlet.jsp-api

/**
 * Release state.
 *
 * @see Tag#release
 */
public void release() {
bodyContent = null;
super.release();
}
origin: javax.servlet.jsp/javax.servlet.jsp-api

/**
 * Default processing of the end tag returning EVAL_PAGE.
 *
 * @return EVAL_PAGE
 * @throws JspException if an error occurred while processing this tag
 * @see Tag#doEndTag
 */
public int doEndTag() throws JspException {
return super.doEndTag();
}
origin: org.springframework/spring-webmvc

if (this.value != null) {
  EditorAwareTag tag = (EditorAwareTag) TagSupport.findAncestorWithClass(this, EditorAwareTag.class);
  if (tag == null) {
    throw new JspException("TransformTag can only be used within EditorAwareTag (e.g. BindTag)");
origin: org.entando.entando/entando-admin-console

@Override
public int doStartTag() throws JspException {
  try {
    String currentCounter = this.getCurrentIndex();
    this.pageContext.getOut().print(currentCounter);
  } catch (Throwable t) {
    _logger.error("error creating (or modifying) counter", t);
    //ApsSystemUtils.logThrowable(t, this, "doStartTag", "error creating (or modifying) counter");
    throw new JspException("error creating (or modifying) counter", t);
  }
  return super.doStartTag();
}
 
origin: com.sun.faces/jsf-api

/**
 * <p>Release any resources allocated by this tag instance.
 */
public void release() {
  super.release();
  this.name = null;
}
origin: javax/javaee-web-api

/**
 * Default processing of the end tag returning EVAL_PAGE.
 *
 * @return EVAL_PAGE
 * @throws JspException if an error occurred while processing this tag
 * @see Tag#doEndTag
 */
public int doEndTag() throws JspException {
return super.doEndTag();
}
origin: org.glassfish.web/jstl-impl

public static Node getContext(Tag t) throws JspTagException {
  ForEachTag xt =
  (ForEachTag) TagSupport.findAncestorWithClass(
  t, ForEachTag.class);
  if (xt == null)
    return null;
  else
    return (xt.getContext());
}

origin: org.entando.entando/entando-admin-console

@Override
public int doStartTag() throws JspException {
  try {
    Set<String> groupCodes = this.getAllowedGroups();
    this.pageContext.setAttribute(this.getVar(), groupCodes);
    return super.doStartTag();
  } catch (Throwable t) {
    _logger.error("Error during tag initialization", t);
    throw new JspException("Error during tag initialization ", t);
  }
}

origin: org.apache.myfaces.core/myfaces-api

/**
 * @deprecated
 */
@Override
public void release()
{
  super.release();
  _name = null;
  _value = null;
}
origin: codefollower/Tomcat-Research

/**
 * Default processing of the end tag returning EVAL_PAGE.
 *
 * @return EVAL_PAGE
 * @throws JspException
 *             if an error occurred while processing this tag
 * @see Tag#doEndTag
 */
@Override
public int doEndTag() throws JspException {
  return super.doEndTag();
}
origin: org.eclipse.jetty.orbit/org.apache.taglibs.standard.glassfish

public static Node getContext(Tag t) throws JspTagException {
  ForEachTag xt =
  (ForEachTag) TagSupport.findAncestorWithClass(
  t, ForEachTag.class);
  if (xt == null)
    return null;
  else
    return (xt.getContext());
}

origin: org.entando.entando/entando-core-engine

@Override
public int doStartTag() throws JspException {
  try {
    String currentCounter = this.getCurrentIndex();
    this.pageContext.getOut().print(currentCounter);
  } catch (Throwable t) {
    ApsSystemUtils.logThrowable(t, this, "doStartTag", "error creating (or modifying) counter");
    throw new JspException("error creating (or modifying) counter", t);
  }
  return super.doStartTag();
}
 
origin: javax/javaee-web-api

/**
 * Release state.
 *
 * @see Tag#release
 */
public void release() {
bodyContent = null;
super.release();
}
origin: org.kantega.openaksess/openaksess-core

@Override
public int doEndTag() throws JspException {
  associationId = -1;
  cssClass = defaultCssClass;
  separator = defaultSeparator;
  skipFirst = false;
  return super.doEndTag();
}
origin: org.bluestemsoftware.open.maven.tparty/jsp-api-2.1

public static Node getContext(Tag t) throws JspTagException {
  ForEachTag xt =
  (ForEachTag) TagSupport.findAncestorWithClass(
  t, ForEachTag.class);
  if (xt == null)
    return null;
  else
    return (xt.getContext());
}

javax.servlet.jsp.tagextTagSupport

Javadoc

A base class for defining new tag handlers implementing Tag.

The TagSupport class is a utility class intended to be used as the base class for new tag handlers. The TagSupport class implements the Tag and IterationTag interfaces and adds additional convenience methods including getter methods for the properties in Tag. TagSupport has one static method that is included to facilitate coordination among cooperating tags.

Many tag handlers will extend TagSupport and only redefine a few methods.

Most used methods

  • release
    Release state.
  • doEndTag
    Default processing of the end tag returning EVAL_PAGE.
  • doStartTag
    Default processing of the start tag, returning SKIP_BODY.
  • findAncestorWithClass
    Find the instance of a given class type that is closest to a given instance. This method uses the ge
  • setPageContext
    Set the page context.
  • getValue
    Get a the value associated with a key.
  • setId
    Set the id attribute for this tag.
  • doAfterBody
    Default processing for a body.
  • setValue
    Associate a value with a String key.
  • getId
    The value of the id attribute of this tag; or null.
  • getValues
    Enumerate the keys for the values kept by this tag handler.
  • removeValue
    Remove a value associated with a key.
  • getValues,
  • removeValue,
  • setParent,
  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Notification (javax.management)
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JLabel (javax.swing)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now