struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aladin Alaily" <>
Subject Re: check box should behaves as radio button
Date Wed, 16 Aug 2006 14:08:59 GMT
The problem with checkboxes doesn't rest with struts but with the http
protocol.  See, when a checkbox is checked, data is sent to the
application.  When the checkbox is unchecked, nothing is sent to the
app... but the original value is retained (since it was checked earlier).

A possible solution, manually check if the checkbox data appears in the
POST parameters.  If not, then you know that the checkbox is not checked
and you can do a actionForm.checkboxname = null OR you set that up in your
ActionForm's reset method.

Hope this helps.

> Hi,
> Thanks to all for helping me in Struts problem
> here now i got stucked in one problem
> Here i need to show check box in UI but this must behaves like Radio
> button
> so how to do that i wrote java script to do that but it is not working
> perfectly
> please help me out
> Thanks in advance
> Shakti Singh

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message