public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
// TODO Auto-generated method stub
ActionErrors errors=new ActionErrors();
if((userName==null)||(userName.length()<1))
{
errors.add("userName",
                                 new ActionError("jsp.hello.error"));//(HelloForm.java:43)提交的时候返回这行错误。要怎么改呢?jsp.hello.error在applicationResourceProperties里有定义:jsp.hello.error=this is error!!!!
}
return errors;
}