Boa tarde.
Tenho uma jsp e preciso recuperar alguns campos no servlet.
Está da seguinte forma:
JSP
<c:forEach var="cadastrador" items="${cadastradores }" varStatus="x">
<c:choose>
<c:when test="${x.count mod 2 != 0 }">
<tr style="cursor:default" onMouseOver="javascript:this.style.backgroundColor='#40E0D0'" onMouseOut="javascript:this.style.backgroundColor=''">
</c:when>
<c:otherwise>
<tr bgcolor="#BEBEBE" style="cursor:default" onMouseOver="javascript:this.style.backgroundColor='#40E0D0'" onMouseOut="javascript:this.style.backgroundColor=''">
</c:otherwise>
</c:choose>
<td class="td">${cadastrador.pesNom}</td>
<td class="td">
<input type='text' name='pesNom' id='pesNom' value='${cadastrador.pesNom}' SIZE='40' MAXLENGTH='40'>
</td>
<td class="td">
<input type='text' name='porcentagemCadastrador' id='porcentagemCadastrador' value='${cadastrador.porcentagemCadastrador}' SIZE='03' MAXLENGTH='03'>
</td>
</tr>
</c:forEach>
SERVLET
String[] pesNom = request.getParameterValues("pesNom");
String[] porcentagem = request.getParameterValues("porcentagemCadastrador");
Porém, estou sempre recebendo NULL nos campos.
O que está errado? Alguém pode ajudar?
Obrigada.