在struts1.1中是否没有saveErrors?
在action中提示:
cannot resolve symbol: method saveErrors (javax.servlet.http.HttpServletRequest,org.apache.struts.action.ActionMessages)in class strutsdemo.ValidatorAction at line 14 (14:13)
如何解决?
------解决方法--------------------------------------------------------
有,你的错误在于你saveErrors(参数1,参数2)参数2的类型不对!
------解决方法--------------------------------------------------------
errors.add(ActionMessages.GLOBAL_MESSAGE,new ActionMessage("error.update.invalid"));
saveErrors(request,errors);