action-validation.xml中问题如下:
The file cannot be validated as the XML definition "http://www.opensymphony.com/xwork/xwork-
validator-1.0.2.dtd" that is specified as describing the syntax of the file cannot be located.
这个是是版本不一致的问题,换成<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd"> 即可

本文介绍了解决action-validation.xml文件中由于DTD定义文件版本不一致导致无法验证的问题。通过更新DTD引用路径,确保文件能正确加载验证定义。
227

被折叠的 条评论
为什么被折叠?



