错误:org.apache.struts.validator.BeanValidatorForm cannot be cast to com.lzj.web.product.formbean.ProductCategoryFormstruts-config.xml配置如下
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
<struts-config> <form-beans>
<form-bean name="productCategoryForm" type="com.lzj.bean.product.ProductCategory" ></form-bean>
</form-beans>
<action-mappings>
<action path="/control/product/type/list" name="productCategoryForm" scope="request" validate="false">
<forward name="list" path="/WEB-INF/page/product/producttypelist.jsp"></forward>
</action>
</action-mappings>
<controller>
<set-property property="processorClass" value="org.springframework.web.struts.DelegatingRequestProcessor" />
</controller>
</struts-config>在action中表单转换时就报那个错误如: ProductCategoryForm categoryForm =(ProductCategoryForm)form;我都要崩溃 总是这些问题 困扰我学习的进度 望各位高手能指点迷津
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
<struts-config> <form-beans>
<form-bean name="productCategoryForm" type="com.lzj.bean.product.ProductCategory" ></form-bean>
</form-beans>
<action-mappings>
<action path="/control/product/type/list" name="productCategoryForm" scope="request" validate="false">
<forward name="list" path="/WEB-INF/page/product/producttypelist.jsp"></forward>
</action>
</action-mappings>
<controller>
<set-property property="processorClass" value="org.springframework.web.struts.DelegatingRequestProcessor" />
</controller>
</struts-config>在action中表单转换时就报那个错误如: ProductCategoryForm categoryForm =(ProductCategoryForm)form;我都要崩溃 总是这些问题 困扰我学习的进度 望各位高手能指点迷津
解决方案 »
- seam 框架
- ini问题
- 学习j2ee用什么教材好点
- Hibernate中怎样实现动态的“懒”
- ORM---JPA中使用注解方式映射实体类
- SAXReader解析xml问题
- javax.naming.NameNotFoundException: ejb not bound
- 菜鸟求解答!JSP中跳转问题
- 怎么学习hibernate和spring....................................
- hibernate模糊查询问题!
- Unable to instantiate Action, loginAction, defined for 'login' in namespace '/'
- 求用Struts 2+Spring+Hibernate开发的<企业人事管理系统>
+1虽然用的少了,如果别人的项目维护用的是struts1,你能对老板说无视么.