📄 add.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%
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 'add.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 language="javascript">
function check()
{
if(form1.Order.value=="")
{
alert("定单号不能为空");
return false;
}
if(form1.Buyer.value=="")
{
alert("购买人不能为空");
return false;
}
if(form1.Itemnum.value=="")
{
alert("物料号不能为空");
return false;
}
if(form1.Item.value=="")
{
alert("物料不能为空");
return false;
}
if(form1.Num.value=="")
{
alert("数量不能为空");
return false;
}
if(form1.Price.value=="")
{
alert("单价不能为空");
return false;
}
}
</script>
</head>
<body>
<form method="post" name="form1" action="success.jsp" onsubmit="return check()">
<p>
请你填写好以下信息:</p>
<p>订单号:<input type="text" name="Order"></p>
<p>购买人:<input type="text" name="Buyer" ></p>
<p>物料号:<input type="text" name="Itemnum" ></p>
<p>物料: <input type="text" name="Item"></p>
<p>数量:<input type="text" name="Num"></p>
<p>单价:<input type="text" name="Price"></p>
<p><input type="submit" value="确定" name="B1"><input type="reset" value="重填" name="B2"></p>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -