Lukasz, 

I tried as you advised. I get the default error message 'Please enter a
value for first name ' which is in the "message" .

Im expecting the error messaage from the properties file.

I think Im placing my properties file in the wrong location. And therefore
my validation returns me the default error message.

Im not sure where to place my properties file.

Thanks,
Tauri.


Lukasz Lenart wrote:
> 
> You mess too many thing, please try like this:
> 
>  @RequiredStringValidator(key = "error.required", message = "Please 
> enter a value for First name")
> 
> error.required = ${fieldName} is required!
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts2-Annotation-based-Validation-tp16089678p16320151.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to