当一个ActionForm 继承自一个自定义classForm 而ClassForm继承自valiteForm 时,如果struts 没有加入这句话 <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value=" /WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
</plug-in> 时,会怕出resource can not be null 错误。
引用js文件中的函数时,如果该jsp在welcome-file-list中配置过并且引用的是相对路径,则在该jsp中使用相对路径引用js文件时则访问不到。
如下图所示情况则访问不到
<welcome-file-list>
<welcome-file>/goods/goods.jsp</welcome-file>
</welcome-file-list>
ibatis中DTO 的字段是个标准的写法 ,如果存在英文单词缩写或者单词中间用下划线或其他特殊字符连接时,则映射不到。
在jsp页面中,如果字段在Form中是Date 类型的将映射不到。
struts的bean:write标签无法输出int和bigdecimal数据的解决方法
<bean:write name="item" property="int" format="#"/>
- <bean:write name="item" property="bigdecimal" format="#"/
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。