javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
以下为struts in action 中的例子配置:运行时报上面的错误
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
<struts-config>
<form-beans>
<form-bean name="RegisterForm" type="com.sxf.struts.actionform.RegisterForm" />
</form-beans>
<action-mappings type="org.apache.struts.action.ActionMapping">
<action path="/struts" type="com.sxf.struts.action.register" name="RegisterForm" input="/register.jsp">
<forward name="success" path="/success.html" />
<forward name="failure" path="/failure.html" />
</action>
</action-mappings>
</struts-config>
以下为register.jsp文件:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="ht" %>
<ht:form action="struts.do">
UserName:<ht:text property="username"/><br>
enter password:<ht:password property="password1"/><br>
re-enter password:<ht:password property="password2"/><br>
<ht:submit value="Register"/>
</ht:form>
这个问题怎么解决啊??????????
是配置的问题吗???