让html:error只显示第一条错误信息
struts-config.xml 中的
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
里面加上
<set-property property="stopOnFirstError" value="true"/>
就可以了
</plug-in>
struts-config.xml 中的
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
里面加上
<set-property property="stopOnFirstError" value="true"/>
就可以了
</plug-in>