81,122
社区成员




<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
<form-validation>
<formset>
<form name="newForm">
<field property="userName" depends="required,maxlength,email">
<arg0 key="name" />
<arg1 name="maxlength" key="${var:maxlength}"
resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>10</var-value>
</var>
</field>
</form>
</formset>
</form-validation>
# Resources for parameter 'com.yourcompany.struts.ApplicationResources'
# Project Test1
userName.error=UserName is wrong!
passWord.error=PassWord is wrong!
addUser.success=Add user is success!
addUser.false=Add user is false!
name=UserName
userName={0}'s length can not > {1}
<body>
<center>
<html:errors /><br />
<html:form action="/new">
userName : <html:text property="userName" />
<html:errors property="userName" />
<br />
passWord : <html:password property="passWord" />
<html:errors property="passWord" />
<br />
<html:submit />
<html:cancel />
</html:form>
</center>
</body>