This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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:
subject: html:checkbox tag
Similar Threads
get the id /value of the checkBox
struts 2 checkbox
problem with unchecking checkbox
Why is request.getParameterValues not working for me?