当前位置:网站首页>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数据库可视化插件配置
Quick solution for infix to suffix and prefix expressions
[Solution] Emqx startup under win10 reports Unable to load emulator DLL, node.db_role = EMQX_NODE__DB_ROLE = core
电机原理动图合集
如何发现新的潜力项目?工具推荐
GIF making - very simple one-click animation tool
利用“栈”快速计算——逆波兰表达式
security cross-domain configuration
短视频SEO优化教程 自媒体SEO优化技巧方法
22.支持向量机—高斯核函数
随机推荐
【无标题】
How to reinstall Win11?One-click method to reinstall Win11
基于编码策略的电网假数据注入攻击检测
go语言标准库fmt包怎么使用
JSP out.print()和out.write()方法的不同之处
Excel表格数据导入MySQL数据库
短视频seo搜索优化主要内容
An interesting project--Folder comparison tool (1)
security CSRF Vulnerability Protection
Multi-feature fusion face detection based on attention mechanism
Arduino 基础语法
利用“栈”快速计算——逆波兰表达式
NFT工具合集
security session concurrency management
easy-excel 解决百万数据导入导出,性能很强
QML包管理
els strip deformation
在不完全恢复、控制文件被创建或还原后,必须使用 RESETLOGS 打开数据库,解释 RESETLOGS.
Arduino Basic Syntax
SphereEx Miao Liyao: Database Mesh R&D Practice under Cloud Native Architecture