You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Lionel <co...@free.fr> on 2005/07/11 11:49:12 UTC

Validation of mapped property

Hi all

I have a mapped property on a form which should be populated with integers.
How can I validate the values with validator ?

Form:
String getMyProperty(String key);
void setMyProperty(String key, String value);

the html source code looks like this:
<input type="text" name="myProperty(0)">
<input type="text" name="myProperty(1)">
...

The index comes from a property of the bean I iterate to generate the input
fields.

Thanks for your help.
I didn't find the answer in Struts Validation Guide :(




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