jQuery in Action, 3rd edition
The moose likes Struts and the fly likes html:checkbox  tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:checkbox  tag" Watch "html:checkbox  tag" New topic

html:checkbox tag

Manish Moorjani

Joined: Jun 17, 2005
Posts: 9

I have a form in which I have mulitple records
like this

Name Owns Car

Manish (checkbox here)
Amit (checkbox here)
Rajesh (checkbox here)

Save button

For the checkbox ,I am using
<html checkbox propertyName=checkCar value= ??? >
In the value I want to put the unique id of the name, so that I can determine for which user the checkbox was clicked.
I am using html iterate to print the names


Happiness is neither fulfillment of desires nor suppression of desires. It is overcoming the desires
Ram Munshi
Ranch Hand

Joined: Aug 09, 2005
Posts: 55
you can use <html:multibox > for such kind of thing ,and in action form you can take an array of string to represent array of string to store the values. I suppose.


Ram Munshi
I agree. Here's the link: http://aspose.com/file-tools
subject: html:checkbox tag
It's not a secret anymore!