Here is an one example of what the validation.xml would look like In jsp: <logic:iterate id="supplierInfo" name="itemForm" property="supplierInfo" indexId="idxSup"> <tr> <td><html:text name='supplierInfo' property='supplierNumber' indexed='true' maxlength='6'/></td> <td><html:text name='supplierInfo' property='sortSequence' indexed='true' maxlength='1'/></td> <td><html:text name='supplierInfo' property='replenishmentCycle' indexed='true' maxlength='3'/></td> <td><html:text name='supplierInfo' property='cutoffTimes' indexed='true' maxlength='48' titleKey='caption.cutoffTimes.hint' onblur='isCommaDelimitedNumber(this);' /></td> </tr> </logic:iterate>
In validation.xml: <field property="supplierNumber" indexedListProperty="supplierInfo" depends="required, minlength, maxlength"> <arg0 key="caption.supplierNumber"/> <arg1 key="${var:minlength}" name="minlength" resource="false"/> <arg2 key="${var:maxlength}" name="maxlength" resource="false"/> <var> <var-name>maxlength</var-name> <var-value>6</var-value> </var> <var> <var-name>minlength</var-name> <var-value>6</var-value> </var> </field> -----Original Message----- From: Juergen Schmailzl [mailto:[EMAIL PROTECTED] Sent: Thursday, February 23, 2006 2:26 PM To: Struts Users Mailing List Subject: Re: validate indexed properties sure, but I didn't get it work... My jsp code looks like this: <logic:iterate id="dw" name="dwForm" property="gd.otherDw"> <html:text styleId="gd.otherDw.dw" name="otherDw" property="dw" indexed="true" size="20" style="text-align:right;" maxlength="9"/> </logic:iterate> how should the validation.xml look like? ----- Original Message ----- From: "James Mitchell" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <user@struts.apache.org> Sent: Thursday, February 23, 2006 8:15 PM Subject: Re: validate indexed properties > Have you tried google? > > http://www.google.com/search?hl=en&q=validating+indexed > +properties&btnG=Google+Search > > > > -- > James Mitchell > EdgeTech, Inc. > http://edgetechservices.net/ > 678.910.8017 > Skype: jmitchtx > > On Feb 23, 2006, at 1:58 PM, Juergen Schmailzl wrote: > >> thanks, >> is it possible to use this on the client side? >> is there a tutorial anywhere how to use it`? >> ----- Original Message ----- From: "James Mitchell" >> <[EMAIL PROTECTED]> >> To: "Struts Users Mailing List" <user@struts.apache.org> >> Sent: Wednesday, February 22, 2006 9:23 PM >> Subject: Re: validate indexed properties >> >> >>> Yes. >>> -- >>> James Mitchell >>> EdgeTech, Inc. >>> http://edgetechservices.net/ >>> 678.910.8017 >>> Skype: jmitchtx >>> On Feb 22, 2006, at 3:16 PM, Juergen Schmailzl wrote: >>>> Hi, >>>> >>>> is it possible to validate indexeded properties with Struts validator >>>> (struts 1.2.7) >>> --------------------------------------------------------------------- >>> 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] >> > > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]