Two Laptop Bag*
The moose likes Struts and the fly likes How to use checkbox in iterate tag ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to use checkbox in iterate tag ?" Watch "How to use checkbox in iterate tag ?" New topic
Author

How to use checkbox in iterate tag ?

suji pra
Greenhorn

Joined: Sep 27, 2002
Posts: 11
I need to display a table of rows using iterate tag.One of the column is a checkbox with value as an some id. I read that there is no "indexed" attribute available for tag html:checkbox . Then how do I implement this functionality in Struts way . I know we can use JSP and javascript to help me out . But as I need to avoid these as much as possible, please suggest me a way .
Thanx


He is able who thinks he is able.
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
Try something like this:
Rick Bos
Greenhorn

Joined: Mar 05, 2002
Posts: 10
Hello I am also trying to use the html:multibox.
My data displays correctly, but it is not updating
the values in my bean when the user selects or deselects a check box.
Here is my JSP:
.
The input to the JSP is a map of WorkerBeans.
The WorkerBean has methods for setting the selected days and languages:

The set methods are not being called ( I logged the calls to a file).
Any help would be appreciated.
[ January 25, 2003: Message edited by: Rick Bos ]
[ January 25, 2003: Message edited by: Rick Bos ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use checkbox in iterate tag ?