Hi, I can't do the validation !
can you check my code? I don't know what is the problem.
SolForm (extends ValidatorForm), in the struts-config
<form-bean name="SolForm " type="users.actions.forms.SolValidateForm"></form-bean>
<action path="/Sol" type="users.actions.solAction" unknown="false" validate="true"> <forward name="no" path="solPage" redirect="false"></forward>
<action path="/getForm" type="users.actions.sol.SolGetAction" name="SolForm" scope="request" unknown="false" validate="true"> <forward name="OK" path="ResultPage" redirect="false"></forward>
in the validation.xml I have
field property="DATE" depends="required,date">
msg name="required,date" key="fail.DATE"></msg>
arg0 key="SolForm .DATE"></arg0>
/field>
field property="Subject" depends="required">
msg name="required" key="fail.Subject"></msg>
arg0 key="SolForm .Subject"></arg0></field>
field property="person" depends="required">
msg name="required" key="fail.tut"></msg>
arg0 key="SolForm .person"></arg0></field>
In the jsp I have this:
<html:form action="getForm.do" method="POST">
SUBJECT<html:text property="SUBJECT"></html:text><html:errors property="SUBJECT"></html:errors>
REVISION DATE<html:text property="REVISION DATE"></html:text><html:errors property=" DATESESSION "></html:errors>
PERSON<html:select property="PERSON">
<html:options collection="lPERSON" roperty="ID" abelProperty="Name""></html:options></html:select><html:errors property="PERSON"></html:errors>
<html:submit>accept</html:submit>
</html:form>