Few mistakes in the code, those I could trace, as per your sql query there is no unknown parameters,
so I did not understand the use of pstmt.setString methods(so one cause of indexoutofbounds is happening here)
Secondly as per your query you are selecting only qtyoforder, but in the rs.next loop,
you are calling getString("customername")(one more cause of error)
Swapna Gouri Kalanidhi
Joined: Mar 14, 2008
Thank you Swastik, it's working after modification... !
subject: SQLException:Parameter Index out of Range