Hi Wendy

here is the piece of code

struts.config.xml: <form-property name="disability" type="java.lang.String[]" />


validation.xml:

 <field  property="disability" depends="required">
       <arg0 key="applicationForm.disability.displayName"/>
  </field>


JSP:
I'm using <logic:iterate> tag to create checkboxes dynamically, i removed logic tag here for readability, it's creating checkboxes, but if i don't select any one of the checkboxes and submit, it did not rise error message, it suppose to give error message as it is required field.


<p><html:multibox property="disability" value="<%=(String)request.getAttribute("disCode")%>" /><bean:write name="disMap" property="description"/>


Thanks for your help.

-Anand

From: Wendy Smoak <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: multi box and required validation
Date: Wed, 29 Sep 2004 09:11:21 -0700

From: "Anand M S" <[EMAIL PROTECTED]>
> I'm using multibox and thats required fileds, i'm using required
validation
> in calidation.xml, but it's not working, ann ideas?

You need to post the relevant bits of the JSP, validation.xml and explain
what you mean by "it's not working".  Are you getting errors?  What do the
log files say?

--
Wendy Smoak


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to