Hi,
My company is having one old application in
struts 1.2 with
java 1.4,
they want to make some changes in that application, they are looking for checkboxws in iteartor
I worked like below
formbean contains:
private
String[] tenderChk;
jsp:
<logic:iterate name="tenderersList" id="tenderer">
<tr class="data">
<html:form action="SetupTenderersAction.do">
<html:hidden name="tenderer" property="tendererId"/>
<html:hidden property="mode" value="firstTimeEdit"/>
<html:hidden name="tenderFormBean" property="projectId"/>
<td>
<input type="checkbox" id="chk" name="tenderChk" value="<bean:write name="tenderer" property="tendererId" />"/>
I want tendererId value in array tenderChk;, so that I could work on its action, but I am not getting any value in my action class
TenderFormBean tenderFormBean = (TenderFormBean) form;
String checkbox[] = tenderFormBean.getTenderChk();
System.out.println("---checkbox--->>"+checkbox);
List list1 = Arrays.asList(checkbox);
System.out.println("----List1===>>>"+list1);
for(int i=0;i<checkbox.length;i++)
{
System.out.println("--for=="+checkbox[i]);
}