📄 newcustomerstep2.jsp
字号:
<%@ page language="java" import="java.util.*,java.sql.*,java.lang.*" pageEncoding="UTF-8"%>
<jsp:useBean id="customerBean" type="javabean.Customer" scope="request"></jsp:useBean>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'NewCustomerStep2.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<form action="editCustomer" method="post">
<%
if("1"==request.getAttribute("flag")){
%>
<input type="hidden" name="customerId" value="${customerBean.customerId}">
<%
}
%>
<font color="red"><%if("1"==request.getAttribute("flag")){%>您要进行老用户信息的修改<%} %></font><br>
<font color="red"><%if("2"==request.getAttribute("flag")){%>您要添加新用户<%} %></font><br>
<input type="hidden" name="flag" value="<%=request.getAttribute("flag") %>">
证件类型:<input type="text" name="" value="<%=customerBean.getIdType()%>" disabled="disabled"><br>
<input type="hidden" name="idType" value="${customerBean.idType}">
证件号码:<input type="text" name="" value="<%=customerBean.getIdNumber()%>" disabled="disabled"><br>
<input type="hidden" name="idNumber" value="<%=customerBean.getIdNumber()%>">
姓名:<input type="text" name="customerName" value="${customerBean.customerName}"><br>
性别:<input type="radio" name="customerSex" value="F"
<%
if("1"==request.getAttribute("flag")){
%>
checked="checked"
<%
}else if("2"==request.getAttribute("flag")){
if(customerBean.getCustomerSex() != null && "F".equals(customerBean.getCustomerSex().trim()))
%>
checked="checked"
<%
}
%>
>女
<input type="radio" name="customerSex" value="M" <%if(customerBean.getCustomerSex() != null && "M".equals(customerBean.getCustomerSex().trim()))%>checked="checked"<% %>>男
<br>
生日:<input type="text" name="customerBirthday" value="${customerBean.customerBirthday}"><br>
联系地址:<input type="text" name="customerAddress" value="${customerBean.customerAddress}"><br>
<input type="submit" name="" value="下一步"><input type="reset" name="">
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -