struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Hong <anthony.bin.h...@gmail.com>
Subject Please show me an example of Struts client side javascript validation for Array
Date Mon, 21 Feb 2005 07:35:25 GMT
I have two fields with same name
<input name="customerName" type="text"/>
<input name="customerName" type="text"/>

Could I use validation.xml to config validation for customerName field?
How to write it?

I tried 
<form name="submitForm">
            <field property="customerName" depends="required"
indexedListProperty="customerName">
            	<arg0 key="customerName"/>
            </field>            
        </form>
 
But it didn't work. Who know the problem?
Thanks a lot!
-- 

Anthony Hong

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message