my dog learned polymorphism
The moose likes Struts and the fly likes html:checkbox mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:checkbox mapping" Watch "html:checkbox mapping" New topic

html:checkbox mapping

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10032

Can I map a <html:checkbox> to a non boolean value?

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
You can, but if you have a group of related checkboxes each with a different value, it's better to use the <html:multibox> tag rather than <html:checkbox>. For more information, see the Struts Taglib documentation.

Consultant, Sima Solutions
I agree. Here's the link:
subject: html:checkbox mapping
jQuery in Action, 3rd edition