I have a form that looks like this :
cat1 [int field]
cat2 [int field]
cat3 [int field]
The fact is that my categories are different each time.
How do i Handle this in my handler ?
Dont know how i should set my getter/setter
Heres my jsp :
<jsp:useBean id="formHandler" scope="page" class="com.pipo.EditStatusMappingHandler"><%--
--%><jsp:setProperty name="formHandler" property="*" /><%--
--%></jsp:useBean>
<form action="jsp/form/mapStatus.jsp" method="POST" name='categoryForm'>
<ul>
<foreach collection="<%= categorySet %>" type="Category" name="itCategory" >
<li>
<label for="<%= itCategory.getId() %>"><%= itCategory.getName(userLang) %></label>
<input type="text" name="<%= itCategory.getId() %>" id="<%= itCategory.getId() %>"/>
</li>
</foreach>
</ul>
<div class="modal-buttons buttons">
<input style="text-align:right;" class='formButton mainButton' type="submit"/>
</form>
I dont know what to put in my handler to get the input name = <%= itCategory.getId() %>
If you use a
Map<String, Data>the getters and setters are defined for you.