This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using selectManyCheckbox.

 
Viswanath Sriram
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic