Yes, but to clarify... I am showing a jsp page with values read from a database. If the checkbox value is true, how do I then make the checkbox on my jsp-page checked and how do I then find out if the checkbox has been unchecked? Do I have to manually read the posted data and see if the checkbox attribute is missing or is there a better way?
BTJ On Tue, 2003-06-10 at 15:45, Kandi Potter wrote: > I would suggest not doing the propagate in the reset. Just use it for the original > values. The values entered on the form are automatically propagated by struts > after the reset by the setters and getters. Just put in some logging or print > statements in those methods and you will see when they are invoked. > > -----Original Message----- > From: Bjorn T Johansen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 10, 2003 4:27 AM > To: [EMAIL PROTECTED] > Subject: Checkbox problem? > > > I use checkboxes to input some variables in a form and as long as I > insert new records, i.e. the checkbox variable gets set to false in the > form's reset method, it works fine. > But when I, say, edit the same record (and propagate the values of the > form in the reset method), I never can uncheck the checkbox if it was > set to true in the reset method. > > Are there any solutions/work around for this? > > > Regards, > > BTJ > > > > ----------------------------------------------------------------------------------------------- > Bjørn T Johansen (BSc,MNIF) > Executive Manager > [EMAIL PROTECTED] Havleik Consulting > Phone : +47 67 54 15 17 Conradisvei 4 > Fax : +47 67 54 13 91 N-1338 Sandvika > Cellular : +47 926 93 298 http://www.havleik.no > ----------------------------------------------------------------------------------------------- > "The stickers on the side of the box said "Supported Platforms: Windows > 98, Windows NT 4.0, > Windows 2000 or better", so clearly Linux was a supported platform." > ----------------------------------------------------------------------------------------------- > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- ----------------------------------------------------------------------------------------------- Bjørn T Johansen (BSc,MNIF) Executive Manager [EMAIL PROTECTED] Havleik Consulting Phone : +47 67 54 15 17 Conradisvei 4 Fax : +47 67 54 13 91 N-1338 Sandvika Cellular : +47 926 93 298 http://www.havleik.no ----------------------------------------------------------------------------------------------- "The stickers on the side of the box said "Supported Platforms: Windows 98, Windows NT 4.0, Windows 2000 or better", so clearly Linux was a supported platform." ----------------------------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]