Thanks much - this is what I was looking to find out. Dave
|---------+----------------------------------> | | "Niall Pemberton" | | | <[EMAIL PROTECTED]| | | nder.co.uk> | | | | | | 04/13/2005 06:18 PM | | | Please respond to | | | "Struts Users Mailing | | | List" | |---------+----------------------------------> >----------------------------------------------------------------------------------------------------------| | | | To: "Struts Users Mailing List" <user@struts.apache.org> | | cc: (bcc: David Whipple/DTCC) | | Subject: Re: Validator error messages from different resource files | >----------------------------------------------------------------------------------------------------------| In the current struts release all you can do is use the bundle attribute on the tags that display the error messages - i.e. either the <html:errors> or <html:messages> tags. Something like <html:errors bundle="validator" /> for the example you use. See http://tinyurl.com/6zzvm for more details. The Commons Validator DTD does have a "bundle" attribute defined for the <msg> element, but it currently does nothing. I recently committed changes which now support this - See http://tinyurl.com/6pl56 for more details. Its available in the nightly build if you want to try it out: http://tinyurl.com/3mh2j Niall ----- Original Message ----- From: "David Whipple" <[EMAIL PROTECTED]> Sent: Wednesday, April 13, 2005 9:31 PM > Does anyone know a way have the Validator read the error messages for > failed validation out of a non-default ApplicationResources.properties > file? > > I am trying to separate the error messages out into a file that other > developers need not and/or should not touch. Actually it could be a set of > files, for different portions of the applications. > > I want to have the following in my struts config file: > > <message-resources key="validator" parameter="ValidatorResources"/> > <message-resources key="application" parameter="ApplicationResources"/> > > where to display something on a JSP you would need to use the > > <bean:message bundle="application" key="message.something"/> > > to write it out. I don't see anything where I can specify the "bundle" for > error messages in the validator. > > I have searched the web and the books I have but couldn't come up with > anything. Does anyone know anything about this? > > Thanks, > Dave --------------------------------------------------------------------- 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]