I just posted this a half hour ago:

Alright!
I finally figured out a way around this.  I'm all proud cuz this has been
pissing me off for a while now.  If you don't use the reset method, then you
just have to put one tag after your checkbox.  AFTER the checkbox tag, put
<jsp:setProperty name="beanName" property="prop" value="false" />.  This
will let the checkbox load normally, then set the property to false after
it's loaded, so now all required properties will be correctly updated.  Try
it out, it works (at least for me).  Is this workaround frowned upon by the
struts gurus?

~ Keith
http://www.buffalo.edu/~kkamholz



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 5:22 AM
To: Struts Users Mailing List
Subject: reflect the uncheck in the bean



Hi everybody,

When I uncheck a checkbox in an HTML form, the pair name/value don't appear
in the request, and the ActionForm bean cannot reflect this.
It's the same for a text input who's left empty.

Is there a workaround using Struts?



Gilles Vandaele


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

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

Reply via email to