Hi t, I'm having my own problems with checkboxes / multiboxes. However, I think I can help u a bit with some of those questions.
- When you check a box and submit it, the value that gets submitted is the one on the value attribute of that checkbox. - When you check more than one checkbox with the same "name", you'll need an array-type property for Struts handling it properly. Each position on the array generated (setXXX-ed) by Struts will be the value of a checked box. - I haven't actually implemented this lately, but I believe that, in case your screen is the kind that refresh itself after the post (i.e. no post / redirect technique being used), then you might have to reset the array on the reset() method of the corresponding actionForm. In any case, you might want to check Struts' web site for more info on this issue. HTH, Freddy- -----Mensaje original----- De: t t [mailto:[EMAIL PROTECTED] Enviado el: miercoles, 13 de octubre de 2004 3:31 Para: [EMAIL PROTECTED] Asunto: Help! Questions about Checkbox and multibox Hi, all, I have some questions regarding Checkbox and multibox: 1. What value will be returned if a checkbox is checked? How to get it from the relevant form bean? any example? 2. If I want to check a group of checkboxes (multibox) after a single checkbox is checked, how to do that? I guess javascript will be a good way, but in java script, how to get the reference of checkbox and multibox defined by struts ? any example? Thanks in advance! Tong __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]