代码如下:
===========================================================================
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/Struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/Struts-html.tld" prefix="html" %>
<html:html locale="true">
<head>
<title>RegUser</title>
<html:base/>
</head>
<body bgcolor="white">
<html:errors/>
<html:form action="/regUserAction" focus="logname">
<table border="0" width="100%">
  <tr>
    <th align="right">
      Logname:
    </th>
    <td align="left">
      <html:text property="logname" size="20" maxlength="20"/>
    </td>
  </tr>
  <tr>
    <th align="right">
      Password:
    </th>
    <td align="left">
      <html:password property="password" size="20" maxlength="20"/>
    </td>
  </tr> 
  <tr>
    <th align="right">
      E-mail:
    </th>
    <td align="left">
      <html:password property="email" size="30" maxlength="50"/>
    </td>
  </tr>
  <tr>
    <td align="right">
      <html:submit property="submit" value="Submit"/>
    </td>
    <td align="left">
      <html:reset/>
    </td>
  </tr>
</table>
</html:form>
</body>
</html:html>

解决方案 »

  1.   

    <html:form action="/regUserAction" focus="logname">
    应该是
    <html:form action="/regUserAction.do" focus="logname">
      

  2.   

    你有改过WEB.xml文件吗?  <welcome-file-list>
        <welcome-file>******</welcome-file>
      </welcome-file-list>有改过吗?其它的目录存置又如何?
      

  3.   

    把struts-examples的WEB-INF下的全考到了test的WEB-INF下了,没有该动。
      

  4.   

    对test项目右键-“属性”-“java构建路径”-“库”-“添加jar..”
    把jar报道进去