long billNo =Long.parseLong(request.getParameter("billNo"));
long admissionNo=Long.parseLong(request.getParameter("admissionNo"));
float amount = Long.parseLong(request.getParameter("amount"));
float balanceAmt;
Bill bill= new Bill();
Student student= new Student();
bill=billDAO.selectBill(billNo);
student=studentDAO.selectByAdmissionNo(admissionNo);
balanceAmt=bill.getAmount()-amount;
PartialPayment pay = new PartialPayment(student, bill, balanceAmt);
partialPaymentDAO.addDetails(pay);