|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.servlet.jsp Class SkipPageException
java.lang.Object java.lang.Throwable java.lang.Exception javax.servlet.jsp.JspException javax.servlet.jsp.SkipPageException
- All Implemented Interfaces:
- Serializable
public class SkipPageException
- extends JspException
指示调用页面必须停止求值的异常。由简单标记处理程序抛出,指示不必对页面的剩余部分求值。在一个标记调用另一个标记的情况下(在标记文件中也可能出现这种情况),结果被传播回页面。效果类似于经典标记处理程序从 doEndTag() 返回 Tag.SKIP_PAGE 的效果。Jsp 片段也可能抛出此异常。此异常不应在 JSP 页面或标记文件中手动抛出 - 该行为是不确定的。该异常应该在 SimpleTag 处理程序和 JSP 片段中抛出。
since | 2.0 |
See also | doTag, invoke, doEndTag |
Exception to indicate the calling page must cease evaluation. Thrown by a simple tag handler to indicate that the remainder of the page must not be evaluated. The result is propagated back to the pagein the case where one tag invokes another (as can be the case with tag files). The effect is similar to that of a Classic Tag Handler returning Tag.SKIP_PAGE from doEndTag(). Jsp Fragments may also throw this exception. This exception should not be thrown manually in a JSP page or tag file - the behavior is undefined. The exception is intended to be thrown inside SimpleTag handlers and in JSP fragments.
- Since:
- JSP 2.0
- See Also:
SimpleTag.doTag()
,JspFragment.invoke(java.io.Writer)
,Tag.doEndTag()
, Serialized Form
Constructor Summary | |
---|---|
SkipPageException()
Creates a SkipPageException with no message. |
|
SkipPageException(String message)
Creates a SkipPageException with the provided message. |
|
SkipPageException(String message,
Throwable rootCause)
Creates a SkipPageException with the provided message and root cause. |
|
SkipPageException(Throwable rootCause)
Creates a SkipPageException with the provided root cause. |
Method Summary |
---|
Methods inherited from class javax.servlet.jsp.JspException |
---|
getRootCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public
SkipPageException()
创建不带消息的 SkipPageException。
英文文档:
SkipPageException
public SkipPageException()
- Creates a SkipPageException with no message.
public
SkipPageException(String message)
创建带提供的消息的 SkipPageException。
message | 详细信息 |
SkipPageException
public SkipPageException(String message)
- Creates a SkipPageException with the provided message.
- Parameters:
message
- the detail message
public
SkipPageException(String message, Throwable rootCause)
创建带提供的消息和根本原因的 SkipPageException。
message | 详细信息 |
rootCause | 此异常的根本原因 |
SkipPageException
public SkipPageException(String message, Throwable rootCause)
- Creates a SkipPageException with the provided message and root cause.
- Parameters:
message
- the detail messagerootCause
- the originating cause of this exception
public
SkipPageException(Throwable rootCause)
创建带提供的根本原因的 SkipPageException。
rootCause | 此异常的根本原因 |
SkipPageException
public SkipPageException(Throwable rootCause)
- Creates a SkipPageException with the provided root cause.
- Parameters:
rootCause
- the originating cause of this exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!