public void retainFormFieldsForSubmit(HttpServletRequest request, List wcList) { if (wcList != null && wcList.size() > 0) { int notesListSize = wcList.size(); for (int i = 0; i < notesListSize; i++) { if (i != Integer.parseInt((String) request.getParameter("delIndex"))) { WcrAdd crNote = (WcrAdd) wcList.get(i); crNote.setBillStatus( CommonManager.replaceNull( request.getParameter("milestoneDtlsList[" + i + "].billStatus"))); if (request.getParameter("milestoneDtlsList[" + i + "].billStatus") != null) { System.out.println(">>>>>>>>>>>>>>>>>>>count>>>>>>>>>>>>>>>" + i); System.out.println(request.getParameter("milestoneDtlsList[" + i + "].billStatus")); if (request .getParameter("milestoneDtlsList[" + i + "].billStatus") .equalsIgnoreCase("on")) { request.setAttribute("milestoneDtlsList[" + i + "].billingCheck", "true"); System.out.println(request.getParameter("milestoneDtlsList[" + i + "].billingCheck")); crNote.setBillingCheck( CommonManager.replaceNull( request.getParameter("milestoneDtlsList[" + i + "].billingCheck"))); } else { crNote.setBillingCheck("false"); } } } } } }
// ver 1.1 starts here public void retainFormFields(HttpServletRequest request, List wcList) { if (wcList != null && wcList.size() > 0) { int notesListSize = wcList.size(); for (int i = 0; i < notesListSize; i++) { if (i != Integer.parseInt((String) request.getParameter("delIndex"))) { WcrAdd crNote = (WcrAdd) wcList.get(i); System.out.println( "billStatus" + i + "data" + request.getParameter("milestoneDtlsList[" + i + "].billStatus")); crNote.setBillStatus( CommonManager.replaceNull( request.getParameter("milestoneDtlsList[" + i + "].billStatus"))); System.out.println( "billingCheck" + i + "data" + request.getParameter("milestoneDtlsList[" + i + "].billingCheck")); crNote.setBillingCheck( CommonManager.replaceNull( request.getParameter("milestoneDtlsList[" + i + "].billingCheck"))); } } } }