On Sun, Apr 01, 2001 at 05:55:34PM +1000, JOEL VOGT wrote:
> Hi,
> 
> I have in my jsp an iterate tag that includes checkboxes.
> My form contains an array of boolean values which are supposed to 
> correspond to the values on the jsp.
> When I submit the form only the checkboxes that equate to 'true' are 
> being added to the array.
> I read that you have to reset the checkbox values in the reset method to 
> recognise false values. But at this time my array of checkbox values is 
> at length 0?
> Any ideas how to get these false values in the array?
> 
> Thanks, Joel.
> 
If I understand right what happens then the general recipe is:

Don't submit directly to a jsp. Submit to an action that can
inittialize your form bean (and with the reset method your
checkboxes) and forward to the to the jsp you want to see.
Hope not stated just the obvious.                      incze

Reply via email to