-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcatch.jsp
More file actions
31 lines (31 loc) · 1.04 KB
/
catch.jsp
File metadata and controls
31 lines (31 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<%@ page isErrorPage="true" %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Latest compiled JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<title>MyCollege</title>
</head>
<body>
<%@ include file="header.jsp" %>
<div class="p-5 m-5">
<h1 class="alert alert-danger">Error Page</h1>
<!--
//JSP implicit objects
out: JspWriter
request: HttpServletRequest
response: HttpServletResponse
exception: Exception class object
-->
<%=exception%>
<%
response.sendRedirect("register.jsp?msg="+exception);
%>
<!-- <a href="register.jsp?msg=<%=exception%>">Go to Registration Page</a> -->
</div>
<%@ include file="footer.jsp" %>
</body>
</html>