| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. The ASF licenses this file to You |
| under the Apache License, Version 2.0 (the "License"); you may not |
| use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. For additional information regarding |
| copyright in this work, please see the NOTICE file in the top level |
| directory of this distribution. |
| --> |
|
|
| <%-- Body of the login page, invoked from login.jsp --%>
|
|
|
| <%@ include file="/taglibs.jsp" %>
|
|
|
| <h1><fmt:message key="loginPage.title" /></h1>
|
|
|
| <p><fmt:message key="loginPage.prompt" /></p>
|
|
|
| <logic:present parameter="error">
|
| <div class="error" style="margin-bottom: 15px"><bean:message key="error.password.mismatch"/></div>
|
| </logic:present>
|
|
|
| <form method="post"
|
| id="loginForm"
|
| action="<c:url value="/j_security_check"/>"
|
| onsubmit="saveUsername(this)">
|
|
|
| <table>
|
|
|
| <tr>
|
| <th><fmt:message key="loginPage.userName" />:</th>
|
| <td>
|
| <input type="text" name="j_username" id="j_username" size="25" />
|
| </td>
|
| </tr>
|
|
|
| <tr>
|
| <th><fmt:message key="loginPage.password" />:</th>
|
| <td>
|
| <input type="password" name="j_password" id="j_password" size="20" />
|
| </td>
|
| </tr>
|
|
|
| <c:if test="${rememberMeEnabled}">
|
| <tr>
|
| <td></td>
|
| <td>
|
| <input type="checkbox" name="rememberMe" id="rememberMe" />
|
| <label for="rememberMe">
|
| <fmt:message key="loginPage.rememberMe" />
|
| </label>
|
| </td>
|
| </tr>
|
| </c:if>
|
|
|
| <tr>
|
| <td></td>
|
| <td>
|
| <input type="submit" name="login" id="login" value="<fmt:message key="loginPage.login" />" />
|
| <input type="reset" name="reset" id="reset" value="<fmt:message key="loginPage.reset" />"
|
| onclick="document.getElementById('j_username').focus()" />
|
| </td>
|
| </tr>
|
|
|
| </table>
|
|
|
| </form>
|
|
|
| <script type="text/javascript">
|
| <!--
|
|
|
| if (document.getElementById) {
|
| if (getCookie("username") != null) {
|
| if (document.getElementById) {
|
| document.getElementById("j_username").value = getCookie("username");
|
| document.getElementById("j_password").focus();
|
| }
|
| } else {
|
| document.getElementById("j_username").focus();
|
| }
|
| }
|
|
|
| function saveUsername(theForm) {
|
| var expires = new Date();
|
| expires.setTime(expires.getTime() + 24 * 30 * 60 * 60 * 1000); // sets it for approx 30 days.
|
| setCookie("username",theForm.j_username.value,expires);
|
| }
|
| //-->
|
| </script>
|