struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10584] - Not all validation files are read in Validation PlugIn
Date Tue, 16 Jul 2002 11:31:45 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10584>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10584

Not all validation files are read in Validation PlugIn





------- Additional Comments From volker.krebs@abas.de  2002-07-16 11:31 -------
I have enabled logging, and all files are loaded. But only the validation for
the last one is working. The 'Skipping validation rules file from' error message
never occurs.

I think we found the problem. The ValidatorResourcesInitializer.initialize
method in the commons-validator package seperates the FormSets from different
input streams only by the Locale and not by the Locale and FormSet name.
We thougth different FormSets are merged together from different input streams.

This is how it works now ?
FormA and FormB are specified for the locale de in validation_de.xml and
accordingly for en in validation_en.xml.
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
  <set-property property="pathnames"
    value="/WEB-INF/validator-rules.xml,
           /WEB-INF/validation_de.xml,
           /WEB-INF/validation_en.xml"/>
</plug-in>

What I wanted to have is all languages of formA in a file called
validationFormA.xml and so on.
But this is a feature request (or Bug) for the commons-validator package, they
should not only use the Locale as a key for FormSets.

thanks

--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message