求教,Exception: Cannot find ActionMappings or ActionFormBeans collection

03-09-19 htdog
我真的绝望了,试了千百回,改了千百次,就是不知道什么原因。为什么总告诉我Cannot find ActionMappings or ActionFormBeans collection

我用的就是<Mastering Jakarta Struts>中的第一个例子,不过我还是加了些东西

web.xml如下

<web-app>

<!-- Standard Action Servlet Configuration (with debugging) -->

<servlet>

<servlet-name>action</servlet-name>

<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>

<init-param>

<param-name>config</param-name>

<param-value>/WEB-INF/struts-config.xml</param-value>

</init-param>

<init-param>

<param-name>debug</param-name>

<param-value>2</param-value>

</init-param>

<init-param>

<param-name>detail</param-name>

<param-value>2</param-value>

</init-param>

<load-on-startup>2</load-on-startup>

</servlet>

<!-- Standard Action Servlet Mapping -->

<servlet-mapping>

<servlet-name>action</servlet-name>

<url-pattern>*.do</url-pattern>

</servlet-mapping>

。。。。。。。

</web-app>

struts-config.xml如下

<struts-config>

<form-beans>

<form-bean name="lookupForm" type="wiley.LookupForm"/ >

</form-beans>

<action-mappings>

<action path="/Lookup" type="wiley.LookupAction" name="lookupForm" input="/index.jsp" scope="request">

<forward name="success" path="/quote.jsp"/>

<forward name="failure" path="/index.jsp"/>

</action>

</action-mappings>

听说这个例子有问题,请教高手,我的问题在那里?万分感谢!

猜你喜欢