Same styling of photo albums as with tapestry based application.
[photos] / src / main / webapp / 404.jsp
diff --git a/src/main/webapp/404.jsp b/src/main/webapp/404.jsp
new file mode 100644 (file)
index 0000000..5f2d8eb
--- /dev/null
@@ -0,0 +1,47 @@
+<%@ page language="java" pageEncoding="UTF-8" session="true"%>
+
+
+
+<%
+    String path = request.getContextPath();
+    String basePath = request.getScheme() + "://" +
+        request.getServerName() + ":" + request.getServerPort() + path +
+        "/";
+%>
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+
+<head>
+<title wicket:id="title">Oops</title>
+
+<%
+    String cssUrl = request.getContextPath() + "/resources/org.wamblee.photos.wicket.BasePage/photos.css";
+%>
+
+<link rel="stylesheet" type="text/css" href="<%= cssUrl %>" />
+</head>
+
+<body>
+
+       <div id="banner">
+           <%
+               String logoUrl = request.getContextPath() + "/resources/org.wamblee.photos.wicket.BasePage/wamblee_logo.png";
+           %>
+        <img src="<%= logoUrl %>" />
+               <span class="title">wamblee photos</span>
+       </div>
+
+
+    <br/>
+       Oops, the requested URL could not be found.
+       <%
+        String loginUrl = request.getContextPath() + "/login.jsp";
+    %>
+       Please <a href="<%= loginUrl %>">login again</a>
+
+       <%
+           session.invalidate();
+       %>
+</body>
+</html>