📄 updatecarpre.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
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 'updateCarTeamPrevirous.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">
-->
<script type="text/javascript">
function up()
{
var x = document.myform.carDriverId.value
if(isNaN(x))
{
alert("驾驶员编号必须为整型数字");
return false;
}
else
{
return true;
}
}
</script>
</head>
<body >
<h2 align="center">
修改车辆信息
</h2>
<form action="updateCar.do" method="post" name="myform" onsubmit="return up();">
<input type="hidden" name="tid" value="${requestScope.c.id}">
<table align="center" border="1" cellpadding="0"
bordercolor="gray">
<tr>
<td>
车牌号:
</td>
<td>
<input type="text" name="cardid" value="${requestScope.c.cardId}">
</td>
</tr>
<tr>
<td>
驾驶员编号:
</td>
<td>
<input type="text" name="carDriverId"
value="${requestScope.c.carDriverId}">
</td>
</tr>
<tr>
<td>
所属车队:
</td>
<td>
<select name="teamid">
<option>
${requestScope.c.carTeamId}
</option>
<option value="1">
第一车队
</option>
<option value="2">
第二车队
</option>
<option value="3">
第三车队
</option>
<option value="4">
第四车队
</option>
<option value="5">
第五车队
</option>
</select>
</td>
</tr>
<tr>
<td>
<input type="submit" value="确认">
</td>
<td>
<input type="reset" value="重置">
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -