>> shouldn't it show "error.saluation.makechoice" instead ??
It should. Do any of your other messages work, or is it possible that error.saluation.makechoice is not in your .properties file, or worse, the file is not being found in your classes directory? OK, We can assume the file is found if the default msg works... >> Am I stupid LOL . Not enough information provided :-> Sorry, you asked for that one. Duane We all ask that one from time to time; it comes with the territory. -----Original Message----- From: Albrecht Leiprecht [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 10, 2005 2:23 PM To: 'Struts Users Mailing List' Subject: Validator...the 1001st question... Hi all, I'm curious ... shouldn't it be possible to override the default error message assigned to a validator rule ? Here's the example: validator.xml [...] <field depends="validwhen" property="salutation"> <msg name="testmsg" key="error.saluation.makechoice"/> <arg key="label.salutation" position="0"/> <var> <var-name>test</var-name> <var-value>(*this* != "u")</var-value> </var> </field> [...] validator-rules.xml [...] <validator name="validwhen" msg="errors.required" classname="org.apache.struts.validator.validwhen.ValidWhen" method="validateValidWhen" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest"/> [...] I understand, that the "errors.required" is the default msg. And thats exactly what gets shown in case of an error. Am I stupid or shouldn't it show "error.saluation.makechoice" instead ?? scratching his head albi --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]