I am trying to use
Struts validation but I cannot get it to work.
My configuration files are as follows:
struts-config
<form-bean name="profileForm" type="com.sample.form.RegistrationForm"/>
<action path="/profile" type="com.sample.RegistrationAction" name="profileForm" scope="request" validate="true" input="/profile/consumer/register.jsp" parameter="dispatch">
<forward name="register" path=".view.registration"/>
</action>
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
</plug-in>
validation
<formset>
<form name="/profileForm">
<field property="username" depends="required" />
</form>
</formset>
The problem is that when I try to validate nothing happens. Is there anyway for me to find out if validator plugin was loaded and applied during request?