ActionErrors类
1.Action
{
ActionMessages errors = new ActionMessages();
errors.add("userid",new ActionMessage("user.userid.null"));
this.saveErrors(request, errors);
}
2.Form
public ActionErrors xxx(...){
ActionErrors errors = new ActionErrors();
errors.add("userid",new ActionMessage("user.userid.null"));
return errors;
}