<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="com.at.dao.ContentDAO"%>
<%@ page import="java.util.*"%><%
ContentDAO dao = new ContentDAO();
String BillId=dao.getMaxId();%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<title></title>
<script language="javascript">
function doSubmit() { document.myForm.submit();
}</script>
</head><body>
<h3 align=middle>建立订单</h3>
<form method="post" name="myForm" action="contentservlet">
<input type="hidden" name="command" value="Insert">
<input type="hidden" name="forward" value="index.jsp">
<input type="hidden" name="billId" value="<%=BillId%>">
    <table width="800" border="1" align="center"  cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="4">订单号:<%=BillId%></td>
      </tr>
      <tr>
        <td>姓名:</td> 
        <td><input type="text" name="sName" /></td>
       </tr>
      <tr>
          <td  colspan="4">
          <input type="submit"  value="提交" style="cursor:hand" onclick="doSubmit()">
           onclick="window.history.back();">
          </td>
      </tr>
   </table>
   </form>
</body>
</html>
只是waybill.jsp!网页找不到此页,tomcat报的错误如上。

解决方案 »

  1.   

    这个应该是你的ContentDAO有问题吧
      

  2.   

    (waybill_jsp.java:237)去找这行,看看是什么.谁说没找到,找到了,只不过有错.
    <tr>
         <td  colspan="4">
           <input type="submit"  value="提交" style="cursor:hand" onclick="doSubmit()">
           onclick="window.history.back();">     //这是什么
         </td>
      

  3.   

    <input type="submit"  value="提交" style="cursor:hand" onclick="doSubmit()">
           onclick="window.history.back();">     
    不能同时出现两个onclick