s:fielderror验证
Action中:
if(nameErr!=null && nameErr!=""){
???this.addFieldError("nameErr", "名称不能重复");
???return ;
??}
??if(codeErr!=null && codeErr!=""){
???this.addFieldError("codeErr", "编码不能重复");
??}
对应前台标签param值:
<s:fielderror?><s:param>nameErr</s:param></s:fielderror>
<s:fielderror?><s:param>codeErr</s:param></s:fielderror>