The following code is a part of my project and the output of this code is that I get all the title of the posts in the database and a delete hyperlink in front of all enteries. When I click delete for a respective title it should be deleted from jsp page. How to write code for this?
<label><h3>Post published:</h3></label>
<%
rs = stmt.executeQuery("select title from Postdata");
%>
<table id="rounded-corner" summary="all posts">
<tbody>
<% while (rs.next()) {%>
<tr>
<td>
<%=rs.getString(1)%>
</td>
<td>
<a href><%=""%>Delete</a>
</td>
</tr>
<%}%>
</tbody>
</table>