how to delete multiple checkbox data ( like yahoo mail )

Hi , friendhow to select multiple checkbox and delete that dataon jsp page ?]]help
[110 byte] By [Ghanshyama] at [2007-11-27 7:41:11]
# 1

whoaaaaaa, how open ended can you ask a question?

I am going to assume, because I am incredibly intelligent and I can read your mind, that these checkboxes are linked to database records.

What you do is give each checkbox the same name and the value of the checkbox is a unique identifier for the row, most likely an ID value. Lets use the name "personIds"

When you submit the page, all checked checkboxes will submit their ID value and you can retrieve them using:

String[] personIds = request.getParameterValues("personIds");

So now we have all the IDs that we want to delete. You can generate your SQL query like this:

delete from Person where personId in( ... )

and between the ( ) you output all the IDs in the array, seperated by a comma.

I hope I have given you some idea.

gimbal2a at 2007-7-12 19:21:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

>whoaaaaaa, how open ended can you ask a question?

>I am going to assume, because I am incredibly intelligent and I can >read your mind, that these checkboxes are linked to database records.

Thanks dear friend for your open minded HELP

even i hvn't implement such project so i can't post even some CODE

to show you how to do it

But let say u help me in this way..

IF PROBLEM persist i will contact u

Thanks

B COOOOOOL yaar

Ghanshyama at 2007-7-12 19:21:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...