Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to delete a particular row from a dynamic table in a JSP form  RSS feed

 
Jyothirmayee Naidu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I Wish U All "A Very Happy and Prosperous New Year".

I am designing a JSP Form,in which I retrieve all the rows from (employees) a table using "select" statement.For each row I am assigning a "delete" button.I want to delete that particular row where ever that particular delete button is pressed.

Can anyone please help me out.

Thankyou in advance.

Best Regards,
Jyothirmayee.
 
Wayan Saryada
Ranch Hand
Posts: 105
IntelliJ IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You can create a onclick event for the delete button and link this event a delete servlet on your application. With the passed record id the servlet can delete the record and return to your list page.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!