mercredi 11 mai 2016

passing mulitple checkbox values to database using jsp

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