public ActionErrors validate(ActionMapping mapping,HttpServletRequest request)
{ ActionErrors=new ActionErrors();
if((userName==null)||(userName.length()<1))
errors.add("username",new ActionMessage("hello.no.username.error"));
reyurn errors;
}
if((userName==null)||(userName.length()<1))这个判断方法里面的两项不是一样的吗?
(注:此方法和sun的官方关于struts的官方例子)
{ ActionErrors=new ActionErrors();
if((userName==null)||(userName.length()<1))
errors.add("username",new ActionMessage("hello.no.username.error"));
reyurn errors;
}
if((userName==null)||(userName.length()<1))这个判断方法里面的两项不是一样的吗?
(注:此方法和sun的官方关于struts的官方例子)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货