类 javax.servlet.jsp.JspException
的使用

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

javax.servlet.jspJspException 的使用
 

javax.servlet.jspJspException 的子类
 class JspTagException
          Exception to be used by a Tag Handler to indicate some unrecoverable error.
 class SkipPageException
          Exception to indicate the calling page must cease evaluation.
 

javax.servlet.jsp.tagextJspException 的使用
 

抛出 JspExceptionjavax.servlet.jsp.tagext 中的方法
 int TagSupport.doAfterBody()
          Default processing for a body.
 int IterationTag.doAfterBody()
          Process body (re)evaluation.
 int BodyTagSupport.doAfterBody()
          After the body evaluation: do not reevaluate and continue with the page.
 int TagSupport.doEndTag()
          Default processing of the end tag returning EVAL_PAGE.
 int TagAdapter.doEndTag()
          Must not be called.
 int Tag.doEndTag()
          Process the end tag for this instance.
 int BodyTagSupport.doEndTag()
          Default processing of the end tag returning EVAL_PAGE.
 void BodyTagSupport.doInitBody()
          Prepare for evaluation of the body just before the first body evaluation: no action.
 void BodyTag.doInitBody()
          Prepare for evaluation of the body.
 int TagSupport.doStartTag()
          Default processing of the start tag, returning SKIP_BODY.
 int TagAdapter.doStartTag()
          Must not be called.
 int Tag.doStartTag()
          Process the start tag for this instance.
 int BodyTagSupport.doStartTag()
          Default processing of the start tag returning EVAL_BODY_BUFFERED.
 void SimpleTagSupport.doTag()
          Default processing of the tag does nothing.
 void SimpleTag.doTag()
          Called by the container to invoke this tag.
abstract  void JspFragment.invoke(Writer out)
          Executes the fragment and directs all output to the given Writer, or the JspWriter returned by the getOut() method of the JspContext associated with the fragment if out is null.
 void DynamicAttributes.setDynamicAttribute(String uri, String localName, Object value)
          Called when a tag declared to accept dynamic attributes is passed an attribute that is not declared in the Tag Library Descriptor.
 

org.apache.jasper.runtimeJspException 的使用
 

抛出 JspExceptionorg.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.
<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.
 



Copyright © 2013. All Rights Reserved.