the jsp i have written is:
<%!
---------------
---------
ps=con.prepareStatement("DELETE FROM LIBUCE WHERE ROLL=? AND BOOKID=?");
------
---
%>
<%
int rl=Integer.parseInt(request.getParameter("t7"));
String bk=request.getParameter("t8");
ps.executeUpdate();
%>

WHAT ARE THE MISTAKES WID THIS CODE AND WHAT ELSE CAN BE ADDED TO DELETE RECORD FROM DATABASE WITH TWO MATCHING VALUES.
WHILE IMPLEMENTING I AM GETTIN ERROR 500.