This tag renders an HTML check box form element, with its state appropriate to the form bean property
specified. The form bean should use a boolean type property to denote such values.
An interesting problem often associated with a check box is that were it to be deselected by the user and
submitted, there would be no corresponding request attribute associated with this form element. Struts
handles this problem by advising that the property should be set to false in the form bean’s reset()
method. This enables the property to reflect the desired value when the form is submitted.
<html:checkbox property=”approved”/>
html:checkbox
最新推荐文章于 2025-08-12 06:02:38 发布