I have two list on my request on jsp. First one is productGroupName, and the second is products.
Now, I show these like below.
<html:form action="/priceOrder"> <table width="100%" id="tableStyle" style="font: message-box;padding: 20px;"><logic:iterate id="productGroups" name="productGroup"><tr><td><h3 style="background-color: #720D00; color: white;"><bean:write name="productGroups" property="prodGroupName" /></h3><table width="100%" id="tableStyle" style="font: message-box; color: white; padding: 20px; background: #F15A00;"><tr><td width="200px"><strong>Product Name</strong></td><td width="100px"><strong>How Many</strong></td><td><strong>Info</strong></td></tr><logic:iterate id="product" name="products"><tr><c:if test="${(productGroups.prodGroupID) == (product.prodGroupID)}"><td><html:checkbox property="productChecked"><bean:write name="product" property="prodName"/></html:checkbox> <br /></td><td><html:text property="quantity" styleId="check" size="5"/></td><td><bean:write name="product" property="prodDesc" /></td></c:if></tr></logic:iterate></table></td></tr></logic:iterate><tr align="center" style="background-color: #F15A00;"><td height="50px"><html:submit styleId="buton" property="method"><bean:message key="button.order" /></html:submit></td></tr><tr><td></td></tr></table></html:form>As you see firstly I iterate productGroupNames, showing if productID is equal to productGroupID under productGroupName. But I have a problem on getting check box and quantity info. I need which product is checked and how many that is wanted.