struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norris Shelton <>
Subject [S2] Annotation Validation - string substitution in message
Date Thu, 14 May 2009 14:56:23 GMT
I am using the following annotation for validation:
@RequiredStringValidator(key = "required.string.message")

I have the following in my globalMessages:
required.string.message=${} is required

Is there a way to substitute the name of the field or a string that I specify take the place
of ${}?  For example, I would like to see "Team Name is required".

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message