this is deleteProduct.jsp page code. the problem is only the forward tag and the DB operation works good. i used the forward tag to go to adminProducts.jsp but the result is not correct. it shows adminProducts.jsp page content but the address bar shows deleteProduct.jsp whats the problem and how can i fix this ?
<%@ page contentType="text/html;charset=UTF-8"%>
<html>
<%@ page import="org.j2os.shine.jconnection.JDBC" %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>delete product</title>
</head>
<body>
<%
String id = request.getParameter("id");
out.print(id);
JDBC mydb = new JDBC();
mydb.login("com.mysql.jdbc.Driver","jdbc:mysql://localhost/rouyesh", "username", "password", true);
mydb.executeSQLQuery("delete from products where id=" + id);
mydb.commit();
%>
<jsp:forward page="adminProducts.jsp"></jsp:forward>
</body>
</html>