In the latest version of the validation code (I don't know about earlier
versions) you can specify a page number (or name) for each field. I believe
that is to handle exactly the situation you describe. If you add a hidden
field named "page" to your forms, and specify the "page" attribute in your
<field> entries in validation.xml, I believe that should do the trick.

--
Martin Cooper
Tumbleweed Communications


----- Original Message -----
From: "Neal Kaiser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 13, 2001 7:04 PM
Subject: Getting Form Names


> I am using the struts validation framework
> (http://home.earthlink.net/~dwinterfeldt/) but I have a problem because
most
> of my forms are multiple-page forms.
>
> There is a syntax where you can say if a field is required or not in the
> framework.  However, even though a field is required, it might be on the
> second page of the form.
>
> So I am wondering if it is possible to get a String array (or something)
> from the Struts framework that will list all of the form names (i.e
> <html:text property="something">).  That way I can extend the validation
> framework to make sure the field is present before checking if it is
> required.
>
> Thanks,
>
> Neal
>


Reply via email to