ActionErrors里的ADD的用法:
ActionErrors errors = new ActionErrors();
if(userId==null||userId.trim().length() <1){
errors.add( new ActionErrors());
// "reg.error.userid.missing " , "userId " ,
}
------解决方法--------------------------------------------------------
现在用ActionMessages比较好吧
ActionMessages errors=new ActinMessages();
errors.add( "userId ",new ActionMessage( "reg.error.userid.missing "));
------解决方法--------------------------------------------------------
errors.add( "userId " , new ActionErro( "reg.error.userid.missing "));
少了一个r
errors.add( "userId " , new ActionError( "reg.error.userid.missing "));
什么错误?就这样说谁能明白。错误拿来看看