-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.jsp
45 lines (40 loc) · 1.21 KB
/
error.jsp
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<%--
Document : error
Created on : Jun 20, 2017, 11:51:38 AM
Author : sreekanth kasani ')
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import = "java.sql.*" %>
<%
Connection conn = null;
String driver = "com.mysql.jdbc.Driver";
String user = "root";
String pass = "root";
String address = "jdbc:mysql://localhost:3306/scms";
Class.forName(driver);
conn = DriverManager.getConnection(address, user, pass);
Statement st = conn.createStatement();
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Sorry</title>
<style>
body {
background-image:url(errorbg.png);
background-repeat:no-repeat;
background-size:cover;
}
</style>
</head>
<body>
<center>
<img src="errormsg.png" alt="something has gone wrong">
<p> our technical staff is working on it<br />
we'll try to recover as soon as possible <br />
if problem persist please contact administator<br />
</p>
</center>
</body>
</html>