File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Using selectManyCheckbox. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Using selectManyCheckbox. " Watch "Using selectManyCheckbox. " New topic

Using selectManyCheckbox.

Viswanath Sriram

Joined: Jul 20, 2006
Posts: 12
I have used datatable tag to display the rows.For every row a check box will appear with its id.Now i want the list of the selected items in the controller.can any body explain this with code.

[BPSouther: Removed the word urgent from the subject line]
[ September 20, 2006: Message edited by: Ben Souther ]
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

This doesn't sound like a Hibernate question. It looks like it might be a JSP question, but its not very clear from what you have posted. I'll move this over to that forum, but if you really need an answer it might be benefitial to explain the problem more fully.

(And please, Ease Up)
[ September 20, 2006: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

If all the checkboxes have the same name but unique values, HttpServletRequest.getParameterValues will return an array containing the values of the checked boxes.

java.lang.String)" target="_blank" rel="nofollow">

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Using selectManyCheckbox.
jQuery in Action, 3rd edition