我估计是配置文件出错了,原来有一个例子是好用的,
我将XML文件改了就不好用了。

解决方案 »

  1.   

    structs-config.xml
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!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>
    <form-beans>
    <form-bean name="userForm" type="test.UserForm"/>
    </form-beans>
    <global-forwards>
    <forward name="failed" path="/failed.cool"/>
    <forward name="regist" path="/regist.jsp"/>
    </global-forwards>
    <action-mappings>
    <action path="/regist" type="test.RegistAction" 
    name="userForm" scope="request" input="/index.jsp" />
    <action path="/overview" forward="/hello.jsp"/>
    <action path="/failed" forward="/wuwu.jsp" />
    </action-mappings>
    </struts-config>