Hello "friends",

 

 

 

I have a serious problem here, maybe someone can help me.

 

Thank you first :-) .. OK, the problem ... how can I change the 

 

application resource bundle for xml validation?

 

 

 

I can read in validatior-rules.xml ... 

 

 

 

.....

 

 

 

These are the default error messages associated with

 

   each validator defined in this file.  They should be

 

   added to your projects ApplicationResources.properties

 

   file or you can associate new ones by modifying the

 

   pluggable validators msg attributes in this file.

 

 

 

   # Struts Validator Error Messages

 

   errors.required={0} is required. .... 

 

 

 

... a.s.o.

 

 

 

How does the validator know this file when I don't pass an

 

explicit bundle value?

 

It's annoying here, because I have to overwrite the default key for each
field with something like that ...

 

 

 

<msg name="intRange" bundle="default"

key="validation.error.integer.range.field"/>

 

 

 

How can I avoid this?

 

 

 

Thank you and Greetings

Reply via email to