不知道在jsp中这样写spl语句问什么有问题,请帮忙看一下,小弟感激不尽~

<%
Connection conn1=DB.open();
request.setCharacterEncoding("UTF-8");
response.setContentType("text/html;charset=utf-8");
String product_number=request.getParameter("product_number");
int total_quantity=Integer.parseInt(request.getParameter("total_quantity"));
String sql1="select product_name,product_out_price from supermarket_product where product_number=?";
PreparedStatement pstmt=conn1.prepareStatement(sql1);
pstmt.setString(1, product_number);
ResultSet rs1=pstmt.executeQuery();
if(rs1.next()){
String sql2="insert into sell_product(product_name,total_quantity,product_out_price,member_id) values(?,?,?,?)";
PreparedStatement pstmt2=conn1.prepareStatement(sql2);
pstmt2.setString(1, rs1.getString("product_name"));

pstmt2.setInt(2,total_quantity );
pstmt2.setFloat(3,rs1.getFloat("product_out_price"));
String member_id=(String)session.getAttribute("member_id");
pstmt2.setString(4,member_id);
int n=pstmt2.executeUpdate();
if(n==1){
%>数据插入成功!
<%
}
else {
%>数据插入失败!
<%
}
if(pstmt2!=null){pstmt2.close();}
}
if(rs1!=null){rs1.close();}
if(pstmt!=null){pstmt.close();}
if(conn1!=null){DB.close(conn1);}

%>

检查下每个参数,以及对应的类型,调试下,看报什么错。