📄 create.jsp
字号:
<%-- /* * 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: create.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>Create Account</title> </head> <body> <h1>Create a New Account</h1> <f:view> <h:form id="create"> <h:panelGrid columns="3" border="0"> First Name: <h:inputText id="fname" requiredMessage="*" value="#{usermanager.fname}" required="true"/> <h:message for="create:fname" style="color: red"/> Last Name: <h:inputText id="lname" requiredMessage="*" value="#{usermanager.lname}" required="true"/> <h:message for="create:lname" style="color: red"/> Username: <h:inputText id="username" requiredMessage="*" value="#{usermanager.username}" required="true"/> <h:message for="create:username" style="color: red"/> Password: <h:inputSecret id="password" requiredMessage="*" value="#{usermanager.password}" required="true"/> <h:message for="create:password" style="color: red"/> Password (verify): <h:inputSecret id="passwordv" requiredMessage="*" value="#{usermanager.passwordv}" required="true"/> <h:message for="create:passwordv" style="color: red"/> </h:panelGrid> <h:commandButton id="submit" value="Create" action="#{usermanager.createUser}"/> <h:messages style="color: red" globalOnly="true"/> </h:form> </f:view> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -