View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-cms7/archetypes/trunk/website/src/main/resources/archetype-resources/site/src/main/webapp/WEB-INF/jsp/errorpages/ErrorPage401.jsp
Revision: 47266
Committed: Wed Nov 26 14:57:37 2014 UTC (7 years, 6 months ago) by aschrijvers
Content type: text/plain
File size: 2122 byte(s)
Log Message:
ARCHE-306 use session instead of request since the attr is stored on the session. Thx Bert for spotting!

File Contents

# Content
1 <!doctype html>
2 <%@ include file="/WEB-INF/jspf/htmlTags.jspf" %>
3
4 <fmt:setBundle basename="org.hippoecm.hst.security.servlet.LoginServlet" />
5
6 <%
7 String destination = (String) session.getAttribute("org.hippoecm.hst.security.servlet.destination");
8 if (destination == null) destination = "";
9
10 int autoRedirectSeconds = 2;
11
12 %>
13
14 <hst:link var="loginFormUrl" path="/login/form" >
15 <hst:param name="destination" value="<%=destination%>" />
16 </hst:link>
17 <hst:link var="loginProxyUrl" path="/login/proxy" >
18 <hst:param name="destination" value="<%=destination%>" />
19 </hst:link>
20
21 <html lang="en">
22 <head>
23 <meta charset="utf-8"/>
24 <title><fmt:message key="label.authen.required" /></title>
25 <meta http-equiv="refresh" content='<%=autoRedirectSeconds%>;url=${loginFormUrl}' />
26 <link rel="stylesheet" type="text/css" href="<hst:link path='/login/hst/security/skin/screen.css'/>" />
27 </head>
28 <body class="hippo-root">
29 <div>
30 <div class="hippo-login-panel">
31 <form class="hippo-login-panel-form" name="signInForm" method="post" action="${loginProxyUrl}">
32 <h2><div class="hippo-global-hideme"><span>Hippo CMS 7</span></div></h2>
33 <div class="hippo-login-form-container">
34 <table>
35 <tr>
36 <td>
37 <p>
38 <fmt:message key="message.authen.required">
39 <fmt:param value="<%=destination%>" />
40 </fmt:message>
41 </td>
42 </tr>
43 <tr>
44 <td>
45 <p>
46 <a href="${loginFormUrl}"><fmt:message key="message.try.again"/></a>
47 <br/><br/>
48 <fmt:message key="message.page.auto.redirect.in.seconds">
49 <fmt:param value="<%=autoRedirectSeconds%>" />
50 </fmt:message>
51 </p>
52 </td>
53 </tr>
54 </table>
55 </div>
56 </form>
57 <div class="hippo-login-panel-copyright">
58 &copy; 1999-2014 Hippo B.V.
59 </div>
60 </div>
61 </div>
62 </body>
63 </html>

Properties

Name Value
svn:mime-type text/plain