Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Delete Multiple rows using checkbox

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi,
I am doing delete single and multiple rows in Database using checkbox.
I got single row deletion.but i did not get multiple row deletion.
please give solution.

thanks in advance,
 
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

Originally posted by jenny soft:

I am doing delete single and multiple rows in Database using checkbox.
I got single row deletion.but i did not get multiple row deletion.
please give solution.



Can you clarify that. You have to focus on request.getParameterValues(java.lang.String) method to retrive all the checked values as I got to know your problem.
[ January 07, 2008: Message edited by: Dilshan Edirisuriya ]
 
jenny soft
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi,
yes, I got all the checked values using
d = request.getParameterValues("check"),while I print d it shows all the values.even i got all the values that delete only last one values.for example If i got the values anu dani jenny delete jenny alone.I can't delete other two values.
I put my code here.



 
jenny soft
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I got the answer
 
Dilshan Edirisuriya
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
You have to move that sql delete query inside to for loop. I think you have done that.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
"jenny soft",
Please check your private messages.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
is there a complete answer/ full sample to this question? I am having a very similar and is very urgent.thanks
 
Sheriff
Posts: 67650
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Welcome to the Ranch noreen.

Here's a few tips to get you started off right.

Firstly, it's best to start a new topic with your own question rather than re-opening a long-dead topic. I'm going to close this one so you can go ahead and completely describe your issue in a new topic.

Secondly, saying things like "it's urgent" will only make people ignore your posts. Please read this for more information.

I look forward to your new post exactly describing your issue in detail.
 
    Bookmark Topic Watch Topic
  • New Topic