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

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

javax.servlet.jsp.tagextTag 的使用
 

javax.servlet.jsp.tagextTag 的子接口
 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.
 

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

返回 Tagjavax.servlet.jsp.tagext 中的方法
static Tag TagSupport.findAncestorWithClass(Tag from, Class klass)
          Find the instance of a given class type that is closest to a given instance.
 Tag TagSupport.getParent()
          The Tag instance most closely enclosing this tag instance.
 Tag TagAdapter.getParent()
          Returns the parent of this tag, which is always getAdaptee().getParent().
 Tag Tag.getParent()
          Get the parent (closest enclosing tag handler) for this tag handler.
 

参数类型为 Tagjavax.servlet.jsp.tagext 中的方法
static Tag TagSupport.findAncestorWithClass(Tag from, Class klass)
          Find the instance of a given class type that is closest to a given instance.
 void TagSupport.setParent(Tag t)
          Set the nesting tag of this tag.
 void TagAdapter.setParent(Tag parentTag)
          Must not be called.
 void Tag.setParent(Tag t)
          Set the parent (closest enclosing tag handler) of this tag handler.
 

org.apache.jasper.runtimeTag 的使用
 

返回 Tagorg.apache.jasper.runtime 中的方法
 Tag PerThreadTagHandlerPool.get(Class handlerClass)
          Gets the next available tag handler from this tag handler pool, instantiating one if this tag handler pool is empty.
 

参数类型为 Tagorg.apache.jasper.runtime 中的方法
 void PerThreadTagHandlerPool.reuse(Tag 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.
 



Copyright © 2013. All Rights Reserved.