I am an extreme newbie when it comes to JSP and I am really stuck. This is my code:
while (rst.next()) {
id=rst.getString("ID");
nme=rst.getString("Name");
twn=rst.getString("Town");
cny=rst.getString("Country");
out.println("<tr>");
out.println(" <td width='10%'>"+id+"</td>");
out.println(" <td width='20%'>"+nme+"</td>");
out.println("<td width='10%'>"+twn+"</td>");
out.println("<td width='10%'>"+cny+"</td>");
out.println("<td width='10%'>Edit</td>");
out.println("<td width='10%'>Delete</td>");
out.println(" </tr>");
}
out.println("</table>");
out.println("</center>");
Where it says "edit" and "delete" I want them to be buttons but I can't seem to create one. I want the edit button to take the strings to another page (for editing) and the delete button to delete that record (will the while thing at the top cause me problems)?
Thanks