try {
dataCollectionUtil = new DataCollectionUtil(scan);
} catch (Exception e) {
//e.printStackTrace();
ActionErrors errors=new ActionErrors ();
errors.add("noTable", new ActionMessage("此表不存在",false));
this.addErrors(request, errors);
return mapping.findForward("listDataColl");
}
ActionMessage( "此表不存在",false);这样不用资源文件直接写的方法不行。。
所以必须改为:(加资源文件)
errors.add("noTable", new ActionMessage("introns.dataCollection.noTable"));
刚接触,没有研究其具体用法。及为什么。。先把过程记下来;