Try this
@RequiredStringValidator(message = "${getText('error.required', new java.lang.String[] {getText('labels.email')})}")
The getText()
could be used if your action extends ActionSupport
to get the resource messages by the key specified as a parameter. It applied two times in the same expression to build your message. First time without parameter, second with the parameter and used overloaded getText()
implementation.