struts-config.xml是在struts中带的例子程序中改过来的。
<!-- ========== Action Mapping Definitions ============================== -->
<action-mappings> <!-- Edit user registration -->
<action path="/editRegistration"
type="org.apache.struts.webapp.example.EditRegistrationAction"
attribute="registrationForm"
scope="request"
validate="false">
<forward name="success" path="/registration.jsp"/>
</action>
<action path="/ZZSSYBAction"
type="ZZSSYBAction"
name="ZZSSYBForm"
scope="request"
input="/ZZSSYB.jsp"
validate="false">
<forward name="ZZSSYB" path="/ZZSSYB.jsp"/>
</action>
<!-- ========== Action Mapping Definitions ============================== -->
<action-mappings> <!-- Edit user registration -->
<action path="/editRegistration"
type="org.apache.struts.webapp.example.EditRegistrationAction"
attribute="registrationForm"
scope="request"
validate="false">
<forward name="success" path="/registration.jsp"/>
</action>
<action path="/ZZSSYBAction"
type="ZZSSYBAction"
name="ZZSSYBForm"
scope="request"
input="/ZZSSYB.jsp"
validate="false">
<forward name="ZZSSYB" path="/ZZSSYB.jsp"/>
</action>
<action path="/editRegistration"
actionClass="org.apache.struts.webapp.example.EditRegistrationAction"
formAttribute="registrationForm"
formClass="org.apache.struts.webapp.example.RegistrationForm">
<forward name="success" path="/registration.jsp"/>
</action>
<action path="/ZZSSYBAction"
actionClass="ZZSSYBAction"
formAttribute="ZZSSYBForm"
formClass="ZZSSYBForm"
input="/ZZSSYB.jsp"
<forward name="ZZSSYB" path="/ZZSSYB.jsp"/>
</action>
type Exception report
我想应该是你JSP里的那个东西写错了,把size去掉吧
对应的form的get set 才要大写
你如果用lib,就要和actionform里面的变量对应,如果你不用html:text而用<input type="text" >就没问题