[英]Is there a way to redirect to an errorPage without mentioning that page in the jsp?
我有一個errorPage.jsp
,其中包含
<%@ page isErrorPage="true" import="java.io.*"%>
但是在我的代碼中,我找不到任何具有
<%@ page errorPage="errorPage.jsp" %>
在其中定義。 即使在任何地方引發任何異常, errorPage.jsp
顯示errorPage.jsp
。
有什么想法是可能的嗎?
好了,您可以在web.xml
文件中檢查名為error-page
的標記。 有關更多參考,請隨時查看此文檔
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.