I am trying to pass multiple checkbox values to database within jsp and I have implemented this code. While i do insert query to database then I am getting error as lob is not initialized.
String lob;
String lobchk[]= request.getParameterValues("lob");
if(lobchk != null)
{
for(int i=0; i<lobchk.length; i++)
{
lob = lobchk[i];
}
}
Aucun commentaire:
Enregistrer un commentaire