Servlet错误页面跳转同一个页面
来源:互联网 发布:痤疮 知乎 编辑:程序博客网 时间:2024/05/18 11:14
错误页面 MyJsp.jsp
<%@ page language="java" import="java.util.*" pageEncoding="GB18030" errorPage="error.jsp"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <base href="<%=basePath%>"> <title>My JSP 'MyJsp.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache"><meta http-equiv="cache-control" content="no-cache"><meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"><meta http-equiv="description" content="This is my page"><!--<link rel="stylesheet" type="text/css" href="styles.css">--> </head> <body> <% int i = 5/0; %> </body></html>
跳转页面 error.jsp
<%@ page language="java" import="java.util.*" pageEncoding="GB18030" isErrorPage="true"%><%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <base href="<%=basePath%>"> <title>My JSP 'error.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache"><meta http-equiv="cache-control" content="no-cache"><meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"><meta http-equiv="description" content="This is my page"><!--<link rel="stylesheet" type="text/css" href="styles.css">--> </head> <body> <c:out value="<%=exception.getMessage() %>"></c:out> </body></html>
- Servlet错误页面跳转同一个页面
- servlet 页面跳转
- servlet页面跳转
- Servlet页面跳转相关
- jsp,servlet页面跳转
- servlet页面跳转问题
- servlet页面跳转
- servlet跳转jsp页面
- servlet、jsp页面跳转
- 用servlet跳转页面
- Servlet的页面跳转
- jsp,servlet页面跳转 .
- Servlet页面跳转
- Servlet页面跳转
- servlet 页面跳转、转发
- 关于Servlet页面跳转
- Servlet页面跳转
- Servlet跳转页面
- Linux系统服务及其配置
- 自定义的分页控件
- 两个日期的比较,验证是否合法日期
- 2011/2012学年实践学期教学课程表
- 批量编译指定的无效对象【JOB】
- Servlet错误页面跳转同一个页面
- 如何在 Linux 下调试动态链接库
- extjs tbar 换行 多行
- DICOM标准之三_信息对象定义2
- 如何在 Linux 下调试动态链接库 2
- uw cse331 hw2
- windows下maven与eclipse部署
- 如何在android应用程序中启动其他apk程序,被启动程序退出后返回之前的程序
- Emacs+Python