The checkbox will display a value depending on the value of the 'foo' property of your form bean. To make the value checked set the value on the form bean before displaying the page.
Paul > -----Original Message----- > From: otisg [mailto:[EMAIL PROTECTED] > Sent: 05 February 2004 12:58 > To: [EMAIL PROTECTED] > Subject: Can't make html:checkbox CHECKED by default > > > Hello, > > I am using <html:checkbox> Struts tag, but I am unable to set > it > to a CHECKED state by default (I read the docs). > > This is what I am using now: > > <html:checkbox property="foo" value="true"> > > Is 'value' not the attribute I should use for that? > Which attribute should I use then? > > Any help would be appreciated. > Thanks, > > Otis > > > ________________________________________________ > Get your own "800" number > Voicemail, fax, email, and a lot more > http://www.ureach.com/reg/tag > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ************************************** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]