<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"><struts-config>
  <data-sources />
  <form-beans >
    <form-bean name="waybillForm" type="com.cec.struts.form.WaybillForm" />
    <form-bean name="mngBillForm" type="com.cec.struts.form.MngBillForm" />  </form-beans>  <global-exceptions />
  <global-forwards >
    <forward name="rIndex" path="/index.jsp" />  </global-forwards>  <action-mappings >
    <action
      attribute="waybillForm"
      input="/form/waybill.jsp"
      name="waybillForm"
      path="/WaybillAction"
      scope="request"
      type="com.cec.struts.action.WaybillAction" />
    <action
      attribute="mngBillForm"
      input="/form/mngbill.jsp"
      name="mngBillForm"
      path="/mngBill"
      scope="request"
      type="com.cec.struts.action.MngBillAction" />  </action-mappings>  <message-resources parameter="com.cec.struts.ApplicationResources" />
</struts-config>

解决方案 »

  1.   

    配置文件是eclips自动生成的。
      

  2.   

    这是jsp页面内提交的form
    <form name="myform" method="post" action="../WaybillAction">
      <table width="700" border="1">
        <tr>
          <td width="111">订单号:</td>
          <td width="248"><input type="text" name="textfield"></td>
          <td width="111">&nbsp;</td>
          <td width="260">&nbsp;</td>
        </tr>
        <tr>
          <td>托运人姓名:</td>
          <td><input type="text" name="textfield2"></td>
          <td>取货人姓名:</td>
          <td><input type="text" name="textfield3"></td>
        </tr>
      </table>
     <BR>
      <input type="submit" value=" 提 交 " style="cursor:hand" onclick="checkSubmit()">&nbsp;&nbsp;
      <input type="reset" value=" 重 置 " style="cursor:hand">&nbsp;&nbsp;
      <input type="reset" value=" 返 回 " style="cursor:hand" onclick="window.history.back();">
     </form>
      

  3.   

    web.xml 文件中有没有对servlet进行配置
      

  4.   

    昨天试过在web.xml中加上了servlet配置但显示MaybillAction不是servlet