I am working on an application that includes a jsp page, having 5 columns and checkbox corresponding
to a row to edit a particular row.
ProjID ProjName ProjDesc ProjEmail Edit
101 Proj101 ProjDesc101
[email protected] checkbox
102 Proj102 ProjDesc102
[email protected] checkbox
103 Proj103 ProjDesc103
[email protected] checkbox
on page load all the fields are readonly, when click on checkbox I can edit Projname, projdesc, email.
e.g. I have checked 3 checkboxes and I am making an array in javascript. The values in array:
"101","Proj1010","ProjDesc1010","
[email protected]",":","102","Proj1020","ProjDesc1020","
[email protected]",":","103","Proj1030","ProjDesc1030","
[email protected]",":"
So I am able to get the value in the servlet using
String[] newVals = request.getParameterValues("editedVals");
I have a class having 4 fields and getter setters.
I was trying this code, but nothing happened. I want to set "101","Proj1010","ProjDesc1010","
[email protected]"
to one object of ProjPojo and the number of values comes from UI. After that want to update these fields in DB.
Any Suggestion..