当前位置:网站首页>What does the errorPage attribute of the JSP page directive do?
What does the errorPage attribute of the JSP page directive do?
2022-08-02 00:18:00 【qq_25073223】
From:
What does the errorPage attribute of the JSP page directive do??
The following describes the brief description of the errorPage function of the page directive in JSP, as follows:
errorPage function: The errorPage attribute is used to set the JSP page. Notes on jumping the page when an exception occurs: The errorPage and isErrorPage attributes should be used together forSpecify the error page errorPage property: specify the page to jump to when an error occurs isErrorPage property: set the page to be an error page
Example:
Error pages<%@ page language="java" contentType="text/html" pageEncoding="GBK"%><%@ page errorPage="error.jsp"%>test errorPage ------------------------------------------------------------------------------------------------------------error.jsp: Error handling page<%@ page language="java" contentType="text/html" pageEncoding="GBK"%><%@ page isErrorPage="true"%><%--indicates that the page is an error page --%> errorPage property test
test isErrorPage isErrorPage property test
边栏推荐
猜你喜欢
一篇永久摆脱Mysql时区错误问题,idea数据库可视化插件配置
Study Notes: The Return of Machine Learning
如何设计循环队列?快进来学习~
How to design a circular queue?Come and learn~
Axure教程-新手入门基础(小白强烈推荐!!!)
How to solve the error when mysql8 installs make
路由策略
How to get the best power efficiency in Windows 11?
Unity—四元数、欧拉角API+坐标系统
Is TCP reliable?Why?
随机推荐
JSP内置对象out对象的功能简介说明
【HCIP】BGP小型实验(联邦,优化)
2022/08/01 学习笔记 (day21) 泛型和枚举
An overview of the most useful DeFi tools
OpenCV DNN blogFromImage() detailed explanation
Is TCP reliable?Why?
bgp 聚合 反射器 联邦实验
Short video seo search optimization main content
JSP out.println()方法具有什么功能呢?
Statement执行update语句
短视频seo搜索优化主要内容
security 会话并发管理
What is it like to trade for a living?
JSP如何使用request获取当前访问者的真实IP呢?
els strip deformation
06-SDRAM :SDRAM控制模块
C语言七夕来袭!是时候展现专属于程序员的浪漫了!
22.支持向量机—高斯核函数
基于注意力机制的多特征融合人脸活体检测
Axure教程-新手入门基础(小白强烈推荐!!!)