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"
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
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
3 matches
Mail list logo