Re: [S2] Annotation Validation - string substitution in message

2009-05-14 Thread Dave Newton
Norris Shelton wrote: I need some clarification. I should have the following in my globalMessages? required.string.message=${get(fieldName)} is required How would I specify field name? Hmm, in retrospect, I don't know if this technique works with annotations. With XML validation "fieldName"

Re: [S2] Annotation Validation - string substitution in message

2009-05-14 Thread Norris Shelton
norrisshelton From: Dave Newton To: Struts Users Mailing List Sent: Thursday, May 14, 2009 3:13:53 PM Subject: Re: [S2] Annotation Validation - string substitution in message Norris Shelton wrote: > I am using the following annotation for validat

Re: [S2] Annotation Validation - string substitution in message

2009-05-14 Thread Dave Newton
Norris Shelton wrote: I am using the following annotation for validation: @RequiredStringValidator(key = "required.string.message") I have the following in my globalMessages: required.string.message=${string.name} is required Is there a way to substitute the name of the field or a string that I