Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在jsp页面中"a.jsp",如果我在中使用<%@ page errorpage="b.jsp" %>指令"a.jsp",我的问题是如何在jsp中使用errorpage?要保留的源代码是什么"b.jsp",请详细说明
"a.jsp"
<%@ page errorpage="b.jsp" %>
"b.jsp"
您的b.jsp哪个错误页面应如下所示:
b.jsp
<%@ page isErrorPage="true" import="java.io.*"%> ............ ............ <!--Write your custom error message> ............ <!--Print your exception if required> <%exception.printStackTrace(new java.io.PrintWriter(out));%>
参考