Struts中的小问题
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
// TODO Auto-generated method stub
ActionErrors errors = new ActionErrors();//存放错误消息对象
if(this.username==null||this.username.length()<1)
errors.add("username",new ActionMessage("login.username"));
if(this.password==null||this.password.length()<1)
errors.add("password",new ActionMessage("login.password"));
return errors;
}
ActionErrors这个can't be resolved to a type怎么办