Meaningless Drivel is fun!*
The moose likes Other Open Source Projects and the fly likes Getting Checkbox value - DisplayTag library Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Getting Checkbox value - DisplayTag library" Watch "Getting Checkbox value - DisplayTag library" New topic
Author

Getting Checkbox value - DisplayTag library

Soumya Manjunath
Ranch Hand

Joined: Nov 28, 2007
Posts: 34
Hi Everyone,

I'm using Display Tag library to display a table in my JSP. I want to make a row editable if the
checkbox is checked. But I'm not able to extract the checkbox values using request.getParameterValues() (this method is returning null).

Somebody please guide me in the right direction.

Thanks,
Soumya.

Thanks & Regards,<br />Soumya.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41127
    
  45
The example web app that comes with DisplayTag has an example called "Posting forms (checkboxes)". Are you doing things exactly like they're used in that example?


Ping & DNS - my free Android networking tools app
Soumya Manjunath
Ranch Hand

Joined: Nov 28, 2007
Posts: 34
Thanks for the reply Ulf.

The example doesn't say as to how to extract the value in my Servlet. I would like to extract the selected checkbox value in my
servlet and and then display a particular column in that row as editable. Please find my code below and guide me in the right direction.


Looking forward for your input. Thanks.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41127
    
  45
I'd use a tool like the Firefox LiveHttpHeaders extension to examine what HTTP is actually sent to the server. It'll show you all parameters.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting Checkbox value - DisplayTag library
 
Similar Threads
Need to add linebreak in label of f:selectItems
JSP Combobox and Java Class
How to change the inner color of a CheckBox
Converting an AWT image into SWT
Struts2 checkbox bound to boolean field in datasource.