接口 javax.servlet.jsp.tagext.JspTag
的使用

使用 JspTag 的软件包
javax.servlet.jsp.tagext Classes and interfaces for the definition of JavaServer Pages Tag Libraries. 
org.apache.jasper.runtime   
org.glassfish.jsp.api   
 

javax.servlet.jsp.tagextJspTag 的使用
 

javax.servlet.jsp.tagextJspTag 的子接口
 interface BodyTag
          The BodyTag interface extends IterationTag by defining additional methods that let a tag handler manipulate the content of evaluating its body.
 interface IterationTag
          The IterationTag interface extends Tag by defining one additional method that controls the reevaluation of its body.
 interface SimpleTag
          Interface for defining Simple Tag Handlers.
 interface Tag
          The interface of a classic tag handler that does not want to manipulate its body.
 

实现 JspTagjavax.servlet.jsp.tagext 中的类
 class BodyTagSupport
          A base class for defining tag handlers implementing BodyTag.
 class SimpleTagSupport
          A base class for defining tag handlers implementing SimpleTag.
 class TagAdapter
          Wraps any SimpleTag and exposes it using a Tag interface.
 class TagSupport
          A base class for defining new tag handlers implementing Tag.
 

返回 JspTagjavax.servlet.jsp.tagext 中的方法
static JspTag SimpleTagSupport.findAncestorWithClass(JspTag from, Class<?> klass)
          Find the instance of a given class type that is closest to a given instance.
 JspTag TagAdapter.getAdaptee()
          Gets the tag that is being adapted to the Tag interface.
 JspTag SimpleTagSupport.getParent()
          Returns the parent of this tag, for collaboration purposes.
 JspTag SimpleTag.getParent()
          Returns the parent of this tag, for collaboration purposes.
 

参数类型为 JspTagjavax.servlet.jsp.tagext 中的方法
static JspTag SimpleTagSupport.findAncestorWithClass(JspTag from, Class<?> klass)
          Find the instance of a given class type that is closest to a given instance.
 void SimpleTagSupport.setParent(JspTag parent)
          Sets the parent of this tag, for collaboration purposes.
 void SimpleTag.setParent(JspTag parent)
          Sets the parent of this tag, for collaboration purposes.
 

org.apache.jasper.runtimeJspTag 的使用
 

声明为 JspTagorg.apache.jasper.runtime 中的字段
protected  JspTag JspFragmentHelper.parentTag
           
 

类型参数类型为 JspTagorg.apache.jasper.runtime 中的方法
<T extends JspTag>
JspTag
TagHandlerPool.get(Class<T> handlerClass)
          Gets the next available tag handler from this tag handler pool, instantiating one if this tag handler pool is empty.
 

返回 JspTagorg.apache.jasper.runtime 中的方法
<T extends JspTag>
JspTag
TagHandlerPool.get(Class<T> handlerClass)
          Gets the next available tag handler from this tag handler pool, instantiating one if this tag handler pool is empty.
 JspTag JspFragmentHelper.getParentTag()
           
 

参数类型为 JspTagorg.apache.jasper.runtime 中的方法
 void TagHandlerPool.reuse(JspTag handler)
          Adds the given tag handler to this tag handler pool, unless this tag handler pool has already reached its capacity, in which case the tag handler's release() method is called.
 

参数类型为 JspTagorg.apache.jasper.runtime 中的构造方法
JspFragmentHelper(int discriminator, JspContext jspContext, JspTag parentTag)
           
 

org.glassfish.jsp.apiJspTag 的使用
 

类型参数类型为 JspTagorg.glassfish.jsp.api 中的方法
<T extends JspTag>
T
ResourceInjector.createTagHandlerInstance(Class<T> clazz)
          Instantiates and injects the given tag handler class.
 

参数类型为 JspTagorg.glassfish.jsp.api 中的方法
 void ResourceInjector.preDestroy(JspTag handler)
          Invokes any @PreDestroy methods defined on the instance's class (and super-classes).
 



Copyright © 2013. All Rights Reserved.