现在的位置: 首页 > 综合 > 正文

html:errors 不显示

2018年02月08日 ⁄ 综合 ⁄ 共 524字 ⁄ 字号 评论关闭

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"));

刚接触,没有研究其具体用法。及为什么。。先把过程记下来;

抱歉!评论已关闭.