• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp

 
NazneenAliza Shaikh
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i check <html:checkbox> in struts using DynaValidatorForm when field(checkbox) is having datatype String[] on Edit link of the Record...as it's working fine on my Add button
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

A subject of "jsp" in a forum dedicated to JSP is worse than useless.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have a series of checkboxes all with the same property and that property is of type String[], you should be using html:multibox instead of html:checkbox. To set the checkbox as checked initially, just set the property of the bean. Example:

The following statement in an action that forwards to this JSP would cause the red checkbox to show as checked:

[ January 20, 2008: Message edited by: Merrill Higginson ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic