This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to add get the checkbox selected value from the display tag