Hi! Didn't get a chance to check the newsgroup until now. Try: <form name="myform"> <field property="value" indexedListProperty = "value" depends="" <arg0 key=""/> </field> </form>
-----Original Message----- From: Gandle, Panchasheel [mailto:[EMAIL PROTECTED] Sent: August 11, 2003 1:33 PM To: '[EMAIL PROTECTED]' Subject: RE: Struts Validator for map backed beans I have a map-backed bean and the corresponding jsp displays <% int n=100; // n can be anything depending on DB data... for (int i=0;i<n;i++;) { %> <html:text property="value(codeId<%=i%>)" value=""/> <% } %> I need the validator with just one entry value(codeId) in validation.xml <field property="value(codeId)" ... and not 100 fields declared in there. <field property="value(codeId0)" ... <field property="value(codeId1)" ... . . . <field property="value(codeId99)" ... Panchasheel -----Original Message----- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 2:31 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator for map backed beans Sorry, I'd like to help you. But I don't quite understand what you are asking. What is "I have codeId (0....n) n varies"? If you want to know if you can validate indexed properties, the answer is Yes. See requireiif example on: http://jakarta.apache.org/struts/userGuide/dev_validator.html -----Original Message----- From: Gandle, Panchasheel [mailto:[EMAIL PROTECTED] Sent: August 11, 2003 8:43 AM To: 'Struts Users Mailing List' Subject: Struts Validator for map backed beans Can anybody confirm that map backed beans don't have validator. like if I have codeId (0....n) n varies. On the Jsp I have value(codeId0).......value(codeIdn) the last char n is the last number to validate this , instead of entering n entries in the validation.xml I wanted it to do it with just one entry value(codeId). Does anyone know , if such validation exists, if yes please let me know. or I have already started working on MapValidator. Thanks Panchasheel --------------------------------------------------------------------- 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]