Should your formname start with a "/" ?
Lee
On Thu, 14 Oct 2004 13:35:54 +0100, Jin Bal <[EMAIL PROTECTED]> wrote:
> Hi Guys
>
> My validator config seems to be incorrect somewhere but I'm stumped as to what it
> is. The symptoms are that the validator succeeds in all validations no matter what
> i enter (or don't enter) in the form I am using an extension of ValidatorActionForm
> to use the path attribute in the struts-config
>
> Here are my config snippets- can anybody see a config error?
>
> struts conf:
>
> <action input="passwordReminder" name="passwordReminderForm"
> path="/PasswordReminder" scope="request"
>
> type="com.buyacar.actions.ForgottenPasswordAction" validate="true" >
> <forward name="passwordReminderConfirmation" path="passwordReminderConfLayout"
> />
> </action>
>
> plugin:
>
> <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.xml
> ....
> <formset >
> <form name="/PasswordReminder" >
> <field property="emailAddress" depends="required">
> <arg0 key="PasswordReminder.email"/>
> </field>
> </form>
> </formset>
>
> </form-validation>
>
> the form bean looks like:
>
> public class PasswordReminderForm extends ValidatorActionForm {
> public PasswordReminderForm() {
> }
> private String emailAddress;
> public String getEmailAddress() {
> return emailAddress;
> }
> public void setEmailAddress(String emailAddress) {
> this.emailAddress = emailAddress;
> }
> }
>
> all input is appreciated
>
> TIA
> Jin
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]