Look here for an example: http://home.earthlink.net/~dwinterfeldt/revision.html update 9/25/2001. Works like a champ.
-- Voytek Jarnot Quantum materiae materietur marmota monax si marmota monax materiam possit materiari? > -----Original Message----- > From: Andreas Wuest [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 26, 2003 1:20 PM > To: [EMAIL PROTECTED] > Subject: struts 1.1 validation of indexed properties > > > hi, > > i have a small problem validating index properties in my form. > in the validation.xml file i have the following definition > to validate my indexed properties. the validation works fine > for the first (index = 0) property. but i have a maximum of > 18 indexed properties. > > <form name="tipPlayingDayPreviewForm"> > <field property="tipsIndexed[0]" > depends="required,integer,intRange"> > <arg0 key="tipPlayingDayPreviewForm.tipsIndexed" /> > <arg1 name="intRange" key="${var:min}" resource="false" /> > <arg2 name="intRange" key="${var:max}" resource="false" /> > <var> > <var-name>min</var-name> > <var-value>0</var-value> > </var> > <var> > <var-name>max</var-name> > <var-value>20</var-value> > </var> > </field> > </form> > > do i have to add all the 17 other indexed properties with > explicit index, just > like the one above (only with different indexes), or is there > a simpler way > to validate all the properties with only one definition ? > i could not find any documentation about that. > i link would be very helpful, too. > > thanks in advance, > > Andreas > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

