1、validator可以用<bean:message key="" >的
2、在.properites里写key-value映射的消息
3、在ActionForm里写:
pubilc ActionErrors vaildate(ActionMapping mapping,HttpServletRequest request,
HttpServletResponse response) {
           ActionErrors errors = new ActionErrors ();
           //写条件判断           errors .add(ActionErrors.FLOBAL_MESSAGE, new ActionError("你写的Key值"));
           return errors;
}