在将validate改为true时出现警告: No FormBeanConfig found under ''
validator.xml 代码如下:
<form name="shipmentForm">
<field property="ordernumber" depends="required,maxlength">
<arg0 key="business.ordernumber" />
<arg1 name="maxlength" key="${var:maxlength}"
resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>500</var-value>
</var>
</field>

</form>
resources.properties文件代码如下:
business.ordernumber=ordernumber# Struts Validator Error Messages
   errors.required={0} is required.
   errors.minlength={0} can not be less than {1} characters.
   errors.maxlength={0} can not be greater than {1} characters.
   errors.invalid={0} is invalid.   errors.byte={0} must be a byte.
   errors.short={0} must be a short.
   errors.integer={0} must be an integer.
   errors.long={0} must be a long.
   errors.float={0} must be a float.
   errors.double={0} must be a double.
struts-config.xml代码如下:
<message-resources parameter="resources" /> <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validator.xml" />
</plug-in>
页面代码如下:
<html:errors property="ordernumber">
请问这是那里出了错。