How is it possible to get the message from key in the custom validator ?! As mentioned in Struts 2 - reusing Custom Expression Validator you can get default message as :
public void validate(Object o) throws ValidationException {
//Do some logic
addActionError(getDefaultMessage());
}
getMessage
, btw downvote isn't mine. – Alignment