⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loginform.jsp

📁 STRUTS数据库项目开发宝典
💻 JSP
字号:
<%@ include file="/common/taglibs.jsp"%>

<div id="loginTable">
<%-- If you don't want to encrypt passwords programmatically, or you don't
     care about using SSL for the login, you can change this form's action
     to "j_security_check" --%>
<form method="post" id="loginForm" action="<c:url value="/authorize"/>" 
    onsubmit="saveUsername(this);return validateForm(this)">
<table width="100%">
    <tr>
        <td colspan="2">
            <c:if test="${param.error != null}">
            <div class="error fade-ffff00" id="loginError"
                style="margin-right: 0; margin-bottom: 3px; margin-top: 3px">
                    <img src="<c:url value="/images/iconWarning.gif"/>"
                        alt="<fmt:message key="icon.warning"/>" class="icon" />
                    <fmt:message key="errors.password.mismatch"/>
                    <%--c:out value="${sessionScope.ACEGI_SECURITY_LAST_EXCEPTION.message}"/--%>
                </div>
            </c:if>
        </td>
    </tr>
    <tr>
        <th>
            <label for="j_username" class="required">
                * <fmt:message key="label.username"/>:
            </label>
        </th>
        <td>
            <input type="text" name="j_username" id="j_username" size="25" tabindex="1" />
        </td>
    </tr>
    <tr>
        <th>
            <label for="j_password" class="required">
                * <fmt:message key="label.password"/>:
            </label>
        </th>
        <td>
            <input type="password" name="j_password" id="j_password" size="20" tabindex="2" />
        </td>
    </tr>
    <c:if test="${rememberMeEnabled}">
    <tr>
        <td></td>
        <td>
            <input type="checkbox" name="rememberMe" id="rememberMe" tabindex="3"/>
            <label for="rememberMe"><fmt:message key="login.rememberMe"/></label>
        </td>
    </tr>
    </c:if>
    <tr>
        <td></td>
        <td>
            <!-- for Resin -->
            <input type="hidden" name="j_uri" value="" />
            <input type="submit" class="button" name="login" value="<fmt:message key="button.login"/>" tabindex="4" />
            <input type="reset" class="button" name="reset" value="<fmt:message key="button.reset"/>" tabindex="5" 
                onclick="document.getElementById('j_username').focus()" />
        </td>
    </tr>
    <tr>
		<td></td>
		<td><br />
            
        </td>
	</tr>
</table>
</form>
</div>

<%@ include file="/scripts/login.js"%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -