I use the Struts validation.xml to make sure that users do not leave any of the text fields in the web page blank.
The complications come. All text fields are properties of an object. The "form" that is associated with the action mapping has only the getter and setter of that object 'selectedATSUsers'. To display my web page, I iterate through a List of that object: [code] <logic:iterate id="selectedATSUsers" name="orgUnitRoleForm" type="......user.ATSTFUser"> First Name: <html:text name="selectedATSUsers" property="firstName" indexed="true"> <bean:write name="selectedATSUsers" property="firstName" /> </html:text> Last Name: <html:text name="selectedATSUsers" property="lastName" indexed="true"> <bean:write name="selectedATSUsers" property="lastName" /> </html:text> </logic:iterate> [/code] The orgUnitRoleForm is in the action mapping. But, firstName and lastName are not properties in the orgUnitRoleForm. Normally, I can specify something like: <field property="firstName" depends="required"> <arg0 key="xyz" /> </field> for validation. What to do to validate firstName that is inside an object? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]