日期:2014-05-18  浏览次数:20759 次

Struts中的saveErrors()出错
用MyEclipse 6.0开发struts,使用saveErrors()方法时总是有警告,提示:“The method saveErrors(HttpServletRequest, ActionErrors) from the type action is deprecated.”我双击saveErrors用open declaration后出现提示:The source attachment doesn't contain the source for the file action class.这是怎么回事啊?怎么解决呢?

------解决方案--------------------
在action建议用ActionMessage