java.lang.NullPointerException
I have posted a part of my problem at http://forum.java.sun.com/thread.jspa?threadID=5170146
and I commit I was not clear to explain my problem.
PROBLEM:
I have given check boxes and trying to get one or more checboxes but when checkboxes are empty it throwsjava.lang.NullPointerException Please guide and help me.
thanks
PreparedStatement ps6 = cnn.prepareStatement(sql6);
for (i=0;i<product.length;i++){
if(!product[i].equalsIgnoreCase("null")){
ps6.clearParameters();
ps6.setString(1, product[i]);
ps6.addBatch();
}
ps6.executeBatch();
}
ps6.close();
>

