You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ben Anderson <st...@hotmail.com> on 2003/06/19 14:17:44 UTC
validate String[]
I have a page with multiple checkboxes (I'm using <html:multibox>) and I
need to validate that at least one of them is checked.
<code file="struts-config.xml">
<form-bean
name="reportForm"
type="org.apache.struts.validator.DynaValidatorActionForm">
<form-property name="reportList" type="java.lang.String[]"/>
</code>
<code file="validation.xml">
<field property="reportList" depends="required">
<msg name="required" key="err.reportList.required"/>
</code>
This doesn't seem to work. I've been reading through Struts Chapter 12 pdf
about validation, but can't seem to find any cases where the property is an
array of Strings. Any thoughts?
Thanks in advance,
Ben Anderson
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org