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

📄 new.jsp

📁 一个购房管理系统,JSF+Hibernate+Mssql2
💻 JSP
字号:
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>New Customer</title>
		<script type="text/javascript">
        	function setSomeValue(){
        		var f = document.forms['_id1'];  				
  				f.elements['_id1:customerName'].value=1;
  				f.elements['_id1:password'].value=1;
  				f.elements['_id1:idcard'].value=1;  				
        	}
        </script>
	</head>
	<body>
		<center>
			<f:view>
				<f:loadBundle basename="resources" var="label" />
				<h:graphicImage url="../images/42.jpg" width="830" height="60"></h:graphicImage>
				<h:form>
					<h:panelGrid columns="3">
						<h:outputText value="#{label.CustomerName}" />
						<h:inputText id="customerName"
							value="#{customer.customer.customerName}" title="CustomerName"
							required="true" maxlength="20" />
						<h:message for="customerName" style="color:red"></h:message>
						<h:outputText value="#{label.Password}" />
						<h:inputSecret id="password" value="#{customer.customer.password}"
							title="Password" maxlength="16" required="true">
							<f:converter converterId="javax.faces.Byte" />
						</h:inputSecret>
						
						<h:message for="password" style="color:red"></h:message>
						<h:outputText value="#{label.Address}" />
						<h:inputText id="address" value="#{customer.customer.address}"
							title="Address" size="30" />
						<h:message for="address" style="color:red"></h:message>
						<h:outputText value="#{label.Tel1}" />
						<h:inputText id="tel1" value="#{customer.customer.tel1}"
							title="Tel1" />
						<h:message for="tel1" style="color:red"></h:message>
						<h:outputText value="#{label.Tel2}" />
						<h:inputText id="tel2" value="#{customer.customer.tel2}"
							title="Tel2" />
						<h:message for="tel2" style="color:red"></h:message>
						<h:outputText value="#{label.Email}" />
						<h:inputText id="email" value="#{customer.customer.email}"
							title="Email" />
						<h:message for="email" style="color:red"></h:message>
						<h:outputText value="#{label.IDCard}" />
						<h:inputText id="idcard" value="#{customer.customer.idcard}"
							title="Idcard" required="true" />
						<h:message for="idcard" style="color:red"></h:message>
						<h:outputText value="#{label.Bz}" />
						<h:inputTextarea id="bz" value="#{customer.customer.bz}"
							title="Bz" cols="30" rows="5" />
						<h:message for="bz" style="color:red"></h:message>
						<h:commandButton action="#{customer.create}" value="#{label.Submit}" />
						<br>
						<h:commandButton type="reset" value="#{label.Reset}" />
						<h:commandButton action="v_HouseInfo" value="#{label.Back}"  onclick="setSomeValue();" />
					</h:panelGrid>
				</h:form>
			</f:view>
		</center>

	</body>
</html>

⌨️ 快捷键说明

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