35 | If you want to access the user-only ">account page, you will need to
37 | log-in first.
38 |
39 |
40 |
41 |
Roles
42 |
43 |
To show some taglibs, here are the roles you have and don't
44 | have. Log out and log back in under different user accounts to see
45 | different roles.
68 |
69 |
70 |
71 |
72 |
--------------------------------------------------------------------------------
/src/main/webapp/include.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | ~ Licensed to the Apache Software Foundation (ASF) under one
3 | ~ or more contributor license agreements. See the NOTICE file
4 | ~ distributed with this work for additional information
5 | ~ regarding copyright ownership. The ASF licenses this file
6 | ~ to you under the Apache License, Version 2.0 (the
7 | ~ "License"); you may not use this file except in compliance
8 | ~ with the License. You may obtain a copy of the License at
9 | ~
10 | ~ http://www.apache.org/licenses/LICENSE-2.0
11 | ~
12 | ~ Unless required by applicable law or agreed to in writing,
13 | ~ software distributed under the License is distributed on an
14 | ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | ~ KIND, either express or implied. See the License for the
16 | ~ specific language governing permissions and limitations
17 | ~ under the License.
18 | --%>
19 | <%@ page import="org.apache.shiro.SecurityUtils" %>
20 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
21 | <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
22 | <%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
--------------------------------------------------------------------------------
/src/main/webapp/index.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | ~ Licensed to the Apache Software Foundation (ASF) under one
3 | ~ or more contributor license agreements. See the NOTICE file
4 | ~ distributed with this work for additional information
5 | ~ regarding copyright ownership. The ASF licenses this file
6 | ~ to you under the Apache License, Version 2.0 (the
7 | ~ "License"); you may not use this file except in compliance
8 | ~ with the License. You may obtain a copy of the License at
9 | ~
10 | ~ http://www.apache.org/licenses/LICENSE-2.0
11 | ~
12 | ~ Unless required by applicable law or agreed to in writing,
13 | ~ software distributed under the License is distributed on an
14 | ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | ~ KIND, either express or implied. See the License for the
16 | ~ specific language governing permissions and limitations
17 | ~ under the License.
18 | --%>
19 |
20 | <%-- Forward the user to the home page --%>
21 |
--------------------------------------------------------------------------------
/src/main/webapp/login.jsp:
--------------------------------------------------------------------------------
1 | <%@ include file="include.jsp"%>
2 |
3 |
4 |
5 | " />
7 |
8 |
9 |
10 |
Please Log in
11 |
12 |
13 |
Here are a few sample accounts to play with in the default
14 | text-based Realm (used for this demo and test installs only). Do you
15 | remember the movie these names came from? ;)
16 |
17 |
18 |
43 |
44 |
45 |
46 |
47 |
48 |
Username
49 |
Password
50 |
51 |
52 |
53 |
54 |
admin
55 |
123qwe
56 |
57 |
58 |
u1
59 |
123qwe
60 |
61 |
62 |
u2
63 |
123qwe
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
91 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/src/main/webapp/style.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | body {
20 | margin: 15px 0 0 15px;
21 | padding: 1px; /*background: #2370cf;*/
22 | font: 12px 'Lucida Grande', Geneva, Verdana, Arial, sans-serif;
23 | color: #000;
24 | }
25 |
26 | table, td {
27 | font: 12px 'Lucida Grande', Geneva, Verdana, Arial, sans-serif;
28 | color: #000;
29 | }
30 |
31 | h1 {
32 | font: 24px;
33 | }
34 |
35 | img {
36 | border: thin black solid;
37 | }
38 |
39 | #contentBox {
40 | text-align: center;
41 | width: 50%;
42 | margin: auto;
43 | margin-top: 50px;
44 | color: black;
45 | background: #eee;
46 | border: thick black solid;
47 | }
--------------------------------------------------------------------------------