login.jsp

来自「J2EE 项目各个技术的源码」· JSP 代码 · 共 70 行

JSP
70
字号
<%-- /* * The contents of this file are subject to the terms * of the Common Development and Distribution License * (the License). You may not use this file except in * compliance with the License. * * You can obtain a copy of the License at * https://javaserverfaces.dev.java.net/CDDL.html or * legal/CDDLv1.0.txt. * See the License for the specific language governing * permission and limitations under the License. * * When distributing Covered Code, include this CDDL * Header Notice in each file and include the License file * at legal/CDDLv1.0.txt. * If applicable, add the following below the CDDL Header, * with the fields enclosed by brackets [] replaced by * your own identifying information: * "Portions Copyrighted [year] [name of copyright owner]" * * [Name of File] [$Id: login.jsp,v 1.1.1.1 2006/08/10 01:09:25 msreddy Exp $] [Date] * * Copyright 2006 Sun Microsystems Inc. All Rights Reserved */--%><%@page contentType="text/html"%><%@page pageEncoding="UTF-8"%><%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%><%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"   "http://www.w3.org/TR/html4/loose.dtd"><html>    <head>        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">        <title>Login</title>    </head>    <body>    <h1>Login</h1>        <f:view>        <h:messages style="color: red"                    showDetail="true"/>        <h:form id="login">            <h:panelGrid columns="2" border="0">                Username: <h:inputText id="username"                                        value="#{usermanager.username}"/>                        Password: <h:inputSecret id="password"                                         value="#{usermanager.password}"/>            </h:panelGrid>            <h:commandButton id="submit"                              type="submit"                             value="Login"                             action="#{usermanager.validateUser}"/>            <br>            <h:commandLink id="create"                           value="Create New Account"                           action="create"/>        </h:form>           </f:view>        </body></html>

⌨️ 快捷键说明

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