c0d6d4c5a67b001c1418dc9927273de5

来自「我们做的J2EE课程设计实验,使用JSF语言编写一个简易的订单系统,麻雀虽小五脏」· 代码 · 共 50 行

TXT
50
字号
<%@ 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 type="text/javascript">
boolean check()
{
var form = document.forms[0];
if(Order==""&&Buyer==""&&Itemnum==""&&Item==""&&Num==""&&Price=="")
return false;
else
return true;
}
  </head>
  </script>
  
  <body>
              <font size="5">请你填写完以下信息</font> 
   <form name="fom" method="post" action="success.jsp" onsubmit="return check()">
   <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="确定">
      <input type="reset" value="取消"></p>
   <br>
  
   </form>
  </body>
</html>

⌨️ 快捷键说明

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