这是一个简单的JSP错误页面示例,其中显示了错误代码和所请求页面的URL:
404.jsp :
<%@ page language="java" isErrorPage="true" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><!DOCTYPE html><html><head> <title>Error page</title> <meta charset="utf-8"></head><body> <button onclick="history.back()">Back to Previous Page</button> <h1>404 Page Not Found.</h1> <br /> <p><b>Error pre:</b> ${pageContext.errorData.statusCode}</p> <p><b>Request URI:</b> ${pageContext.request.scheme}://${header.host}${pageContext.errorData.requestURI}</p> <br /></body></html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)