logon.form.user.error=<li>用户名字错误!</li> logon.form.password.error=<li>密码错误!</li>
if ((user == null) || (user.length() < 4)) { errors.add("user", new ActionError( "logon.form.user.error")); } if ((password == null) || ( password.length() < 4)) { errors.add("password", new ActionError( "logon.form.password.error")); }
<!-- 表单 Bean --> <form-beans> <form-bean name="logonForm" type="logonworld.forms.LogonForm"> </form-bean> </form-beans>