Same styling of photo albums as with tapestry based application.
[photos] / src / main / webapp / login.jsp
1 <%@ page language="java" pageEncoding="UTF-8" session="true"%>
2
3
4
5 <%
6     String path = request.getContextPath();
7     String basePath = request.getScheme() + "://" +
8         request.getServerName() + ":" + request.getServerPort() + path +
9         "/";
10 %>
11
12 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
13 <html>
14
15 <head>
16 <title wicket:id="title">Home Page</title>
17
18 <%
19     String cssUrl = request.getContextPath() + "/resources/org.wamblee.photos.wicket.BasePage/photos.css";
20 %>
21
22 <link rel="stylesheet" type="text/css" href="<%= cssUrl %>" />
23 </head>
24
25 <body>
26
27         <div id="banner">
28             <%
29                 String logoUrl = request.getContextPath() + "/resources/org.wamblee.photos.wicket.BasePage/wamblee_logo.png";
30             %>
31         <img src="<%= logoUrl %>" />
32                 <span class="title">wamblee photos</span>
33         </div>
34
35
36         Please login:
37         <form method="POST" action="j_security_check">
38                 <table>
39                         <tr>
40                                 <td>Username:</td>
41                                 <td><input type="text" name="j_username" />
42                                 </td>
43                         </tr>
44                         <tr>
45                                 <td>Password:</td>
46                                 <td><input type="password" name="j_password" autocomplete="off"/>
47                                 </td>
48                         </tr>
49                         <tr>
50                                 <td><input type="submit" value="Login" />
51                                 </td>
52                                 <td></td>
53                         </tr>
54                 </table>
55         </form>
56
57 </body>
58 </html>