Thanks for all the responses. It helped me to find an alternative for this. I am using a property for the 'disabled' in my bean and if it is true I am setting the checkbox properties.
Vidya -----Original Message----- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Thursday 26 January 2006 13:04 To: Struts Users Mailing List Subject: Re: struts html:checkbox value On 1/26/06, Vidya (Suvarna) Mahavadi <[EMAIL PROTECTED]> wrote: > Is there a work around for this.. Not a simple one - for text or textarea elements the "readonly" attribute would do the job you're looking for, but from memory "readonly" isn't part of the html 4 standard for checkbox. One approach you could take is to render a checkbox and a hidden field and use some JavaScript to change the value of the hidden field. Alternatively you could use either the logic tags or JSTL to render different elements depending on some condition - i.e. either a checkbox (enabled) or a hidden field and value (disabled). Niall > -----Original Message----- > From: Niall Pemberton [mailto:[EMAIL PROTECTED] > Sent: Thursday 26 January 2006 12:24 > > On 1/26/06, Vidya (Suvarna) Mahavadi <[EMAIL PROTECTED]> wrote: > > > > Hi , > > > > If a check box is disabled and checked does it submit the value true? > I > > have a situation where it is not submitting the disabled checkbox > > properties. Is there a work around for this... > > This is a browser / HTTP isssue - disabled fields don't get submitted. > > Niall --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and any attachments are confidential and intended solely for the addressee. If you have received this message in error, please notify Discovery immediately, telephone number +27 11 529 2888. Any unauthorised use; alteration or dissemination of the contents of this email is strictly prohibited. In no event will Discovery or the sender be liable in any manner whatsoever to any person for any loss or any direct, indirect, special or consequential damages arising from use of this email or any linked website, including, without limitation, from any lost profits, business interruption, loss of programmes or other data that may be stored on any information handling system or otherwise from any assurance that this email is virus free even if Discovery is expressly advised of the possibility of such damages. Discovery is an Authorised Financial Services Provider. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]