struts配置:
<struts-config>
  <form-beans>
  <form-bean name="aa" type="com.li.aa"></form-bean>
  </form-beans>
  <global-exceptions />
  <global-forwards />
  <action-mappings>
  <action path="cc" type="com.li.bb" name="aa" parameter="command">
  <forward name="success" path="/Success.jsp"></forward>
  <forward name="fail" path="/Fail"></forward>
  </action>
  </action-mappings>
  <message-resources parameter="com.li.ApplicationResources" />
</struts-config>jsp登陆界面:
<form action="/cc.do" method="post">
  用户名:<input name="username" type="text" size="15" />
  密  码:<input name="password" type="password" size="15" />
  <input type="submit" value="登陆"/>
  </form>
错误:HTTP Status 404 - /cc.do--------------------------------------------------------------------------------type Status reportmessage /cc.dodescription The requested resource (/cc.do) is not available.
--------------------------------------------------------------------------------Apache Tomcat/6.0.29

解决方案 »

  1.   

    我猜测的,不知道这样行不行 你试试  改成path="/cc",action="cc.do",web.xml配置了*.do
      

  2.   

    <action path="/cc" type="com.li.bb" name="aa" parameter="command">
      

  3.   

    <%=request.getContextPath()%>/cc.do
      

  4.   

    /cc,因为ActionServlet得到cc.do转换成/cc再和配置文件中的/cc比对。
      

  5.   

    <form action="/cc.do" method="post">改为
    <form action="cc.do?method" method="post">或
    <form action="/cc" method="post"> 都可以的
      

  6.   

    觉得应该是web.xml的struts配置问题
      

  7.   

    <action path="/cc" type="com.li.bb" name="aa" parameter="command">