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? Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Shelton Consulting, LLC ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton ________________________________ From: Dave Newton <newton.d...@yahoo.com> To: Struts Users Mailing List <user@struts.apache.org> 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 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 specify > take the place of ${string.name}? For example, I would like to see "Team > Name is required". ${getText(fieldName)} (more or less, and there should be a key of the field name defined. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org