Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes Using selectManyCheckbox. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Using selectManyCheckbox. " Watch "Using selectManyCheckbox. " New topic
Author

Using selectManyCheckbox.

Viswanath Sriram
Greenhorn

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
Bartender

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
Sheriff

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">http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html#getParameterValues(java.lang.String)


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Using selectManyCheckbox.
 
Similar Threads
JApplet - Flickering
JSP help with URL parameters
Sharing useful blogs.
What do you use for checking file modifications?
Can I make JTree like menu in JSP?