throwexceptiontoerrorpage.jsp

来自「实例精华」· JSP 代码 · 共 13 行

JSP
13
字号


<%@ page language="java" errorPage="ErrorPage.jsp" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
   if (true)
     throw new Exception("An Exception!");
%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?