Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with html:checkbox tag

 
Manu Ramakrishnan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody help me in this ?
If struts checkbox tag is not checked what will be the value returned ? The mutator methods of the Form Bean is not getting invoked. Can I specify an unchecked value for this tag ?
Regards
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is that the checkbox field is not submitted when it is not checked. As a workaround you can set the value of your checkbox to false
in the reset method of the form.
On the Struts FAQ page this workaround is explained in detail. You can find details here
Olli
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic