File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes How to add get the checkbox selected value from the display tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to add get the checkbox selected value from the display tag" Watch "How to add get the checkbox selected value from the display tag" New topic
Author

How to add get the checkbox selected value from the display tag

Riyas Hameed
Ranch Hand

Joined: Jan 07, 2012
Posts: 33
Hi All,

I am new to struts , using the pred defined display tag I have created a table and display the database information in the table. it is working fine
I need to user choose the list of rows from the display table to delete . so i have added check box in the dislay tag but i dont know how to set the selected check box values in the form bean.



I have added my display tag code.I need to get the checkbox selected values and delete the record from the database .once i get the list of selected check box values then i will form the query to delete the record . please advise me and correct me if anything wrong in the code .
Thanks in Advance.
Riyas Hameed
Ranch Hand

Joined: Jan 07, 2012
Posts: 33
Hi All,

I have fixed the above issue .Now I can get the selected checkbox value .its is working fine now.


Thanks
VeeraSwamy Garapati
Greenhorn

Joined: Nov 22, 2012
Posts: 2
Hameed,

I am also facing same problem. How did you solve the above issue??
Siva Reddya
Greenhorn

Joined: Nov 28, 2012
Posts: 12
Hi Hameed,

I am also facing same problem. How did you solve the above issue??can you please provide code my mailid:avsreddy001@gmail.com

Thanks in Advance
SivaReddy.
Siva Reddya
Greenhorn

Joined: Nov 28, 2012
Posts: 12
hi
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to add get the checkbox selected value from the display tag
 
Similar Threads
pagination problem
Struts Dojo Tree disappears on page reload
Display Tag horizontal scroll bar issues
maintin checkbox stauts during paginatin(dispalytag)
s:radio and display tag