Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit 68e8649

Browse files
committed
update statistics and error page
1 parent 8c5a6b8 commit 68e8649

14 files changed

Lines changed: 21 additions & 10 deletions

src/main/webapp/WEB-INF/web.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@
6666
<welcome-file-list>
6767
<welcome-file>/index.jsp</welcome-file>
6868
</welcome-file-list>
69+
70+
<error-page>
71+
<error-code>404</error-code>
72+
<location>/error.jsp</location>
73+
</error-page>
6974

75+
<error-page>
76+
<exception-type>java.lang.Exception</exception-type>
77+
<location>/error.jsp</location>
78+
</error-page>
7079

7180
</web-app>
Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,32 @@
22
<html>
33
<head>
44
<meta charset="UTF-8">
5-
<title>Insert title here</title>
5+
<title>Not Found</title>
66
<style>
7-
body{
8-
background-color:#000;
9-
}
7+
108
#demo {
119
width: 692px;
1210
height: 60px;
13-
background-color: #333;
1411
padding: 8px;
1512
}
1613
#logo {
1714
position: relative;
18-
width: 60px;
19-
height: 60px;
20-
background: url(static/img/logo_black.jpg) no-repeat;
15+
width: 400px;
16+
height: 400px;
17+
background: url(static/img/error.jpg) no-repeat;
2118
}
2219
</style>
2320
</head>
2421

2522
<body>
23+
<center>
24+
<div>
25+
<h2 style="color:red">Page Not Found</h2>
26+
</div>
2627
<div id="demo">
2728
<div id="logo"></div>
2829
</div>
30+
</center>
2931

3032
<!--- The following scripts are necessary to do TweenLite tweens on CSS properties -->
3133
<script type="text/javascript" src="static/js/greensock/plugins/CSSPlugin.min.js"></script>
@@ -36,7 +38,7 @@ body{
3638
//we'll use a window.onload for simplicity, but typically it is best to use either jQuery's $(document).ready() or $(window).load() or cross-browser event listeners so that you're not limited to one.
3739
window.onload = function(){
3840
var logo = document.getElementById("logo");
39-
TweenLite.to(logo, 1, {left:"632px"});
41+
TweenLite.to(logo, 3, {left:"300px"});
4042
}
4143
</script>
4244

src/main/webapp/static/img/cry.jpg

73.2 KB
Loading
50.6 KB
Loading
-1.95 KB
Binary file not shown.
-2.77 KB
Binary file not shown.
-1.28 KB
Binary file not shown.
-3.15 KB
Binary file not shown.
-1.44 KB
Binary file not shown.
-4.98 KB
Binary file not shown.

0 commit comments

Comments
 (0)