ActionErrors errors = new ActionErrors();
if((esname==null) || (esname.length()<1) || (esname.length()!=2))
{errors.add("esname",new ActionError("insertairways.jsp.prompt.esname"));} return errors;
这样写可以
id属性:用来命名从消息集合中检索出的每个ActionMessage对象,它和<bean:write>标签的name属性匹配。
if((esname==null) || (esname.length()<1) || (esname.length()!=2))
{errors.add("esname",new ActionError("insertairways.jsp.prompt.esname"));} return errors;
这样写可以
id属性:用来命名从消息集合中检索出的每个ActionMessage对象,它和<bean:write>标签的name属性匹配。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货