This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
It is sorta covered in the JavaRanch Style Guide.
subject: Using selectManyCheckbox.
Similar Threads
What do you use for checking file modifications?
Sharing useful blogs.
Can I make JTree like menu in JSP?
JSP help with URL parameters
JApplet - Flickering