I don't get the problem.
What you have is a form with multiple checkboxes that used to mark rows. and
after the user select the rows he wants you erase the erase the selected
rows from the dB?
All you need is to place all checkboes in the same form using different name
for each one (since we use JSP loop to make the rows we use a static prefix
with the counter as the name) and to place a javascript call to the submit()
method of that form from the image.

the hard part is on the servlet that recive this info, since it has to check
each unike name (we send it the starting & ending values of the counter as
hidden fields in the form)

lee
Lee Elenbaas
RTS Israel
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
(972) 2 5810748 ext: 207
Fax: (972) 2 5815507
------- Life building in 2 easy steps --------------
- First design the best structure you can.
- Then implement it as simple as you can.
That's the best way to complicate life!

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of OG Project(Chennai)
Sent: Monday, February 14, 2000 10:52 AM
To: [EMAIL PROTECTED]
Subject: Help required


Hi All,

I am facing with a problem,it goes like this.

I have a 20 checkboxes and a delete button( a gif image not INPUT
TYPE="Button"). The user has to click the checkbox and then push the delete
button which will invoke a servlet to delete that particular row from the
database.

The problem I am facing now is how to call the servlet by checking the
checkboxes as well as the button image file , both at a time.

One more thing is that I cannot have both the checkbox as well as the button
inside the same FORM method .

Any suggestion is hightly welcomed, links to similar situation on net is
also desired.

Regards
Subendu

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
BEGIN:VCARD
VERSION:2.1
N:Elenbaas;Lee
FN:Lee Elenbaas
NOTE:Extension 207
TEL;WORK;VOICE:+972 (2) 5811462
TEL;HOME;VOICE:+972 (2) 6734245
TEL;CELL;VOICE:+972 (51) 293258
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
EMAIL;INTERNET:[EMAIL PROTECTED]
REV:19991201T233440Z
END:VCARD

Reply via email to