struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Ince <stephenpi...@gmail.com>
Subject array list validation
Date Thu, 04 Feb 2010 12:44:38 GMT
 I am using struts 2 and I am trying to use the validation framework. I
am having difficulty trying to validate a list.

e.g
workspaces[0].name
workspaces[1].name
workspaces[2].name
workspaces[3].name
workspaces[4].name
workspaces[5].name

I would like to require name.
I have tried the following but it does not seem to work.

   <field name="workspaces.name">
       <field-validator type="required">

   <field name="workspaces[].name">
       <field-validator type="required">


Any help would be appreciated.

Steve

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


Mime
View raw message