RicardoPereira
Programmer
What should be the cause of this??
java.lang.ArrayIndexOutOfBoundsException
i have a bean that access my database, and i user this code to process a form:
<jsp:useBean id="pesquisas" scope="request" class="bd.AcessoBD" />
<% String sXNENC = request.getParameter("XNENC" %>
<HR><center><table border=0 cellspacing=1 cellpadding=2 bgcolor = "#eeeeee">
<tr bgcolor="#eeeeee"><td class="smallerheader"><font class="smallerheader"><b>Canal de Venda</b></font></td><td class="smallerheader"><font class="smallerheader"><font class="smallerheader"><b>Nº da Encomenda</b></font></td><td class="smallerheader"><font class="smallerheader"><b>Data de Expedição</b></font></td><td class="smallerheader"><font class="smallerheader"><b>Nº Activação</b></font></td>
<td class="smallerheader"><font class="smallerheader"><b>Nº Guia de Transporte</b></font></td></tr>
<%
ArrayList listaEnc=pesquisas.getNEncomenda(sXNENC);
for( int x=0;x<=listaEnc.size();x++)
{
xiol01p xiol=(xiol01p) listaEnc.get(x);
out.println("<tr bgcolor='#ffffff'>" +
"<td>" + xiol.getXCVND() + "</td><td class='smallertext'>" + xiol.getXNENC() + "</td>" +
"<td class='smallertext'>" + xiol.getXDEXP() + "</td><td class='smallertext'>" + xiol.getXNACT() + "</td>" +
"<td class='smallertext'>" + xiol.getXNGT() + "</td></tr>"
}
%>
The problem is here?
Thanks
java.lang.ArrayIndexOutOfBoundsException
i have a bean that access my database, and i user this code to process a form:
<jsp:useBean id="pesquisas" scope="request" class="bd.AcessoBD" />
<% String sXNENC = request.getParameter("XNENC" %>
<HR><center><table border=0 cellspacing=1 cellpadding=2 bgcolor = "#eeeeee">
<tr bgcolor="#eeeeee"><td class="smallerheader"><font class="smallerheader"><b>Canal de Venda</b></font></td><td class="smallerheader"><font class="smallerheader"><font class="smallerheader"><b>Nº da Encomenda</b></font></td><td class="smallerheader"><font class="smallerheader"><b>Data de Expedição</b></font></td><td class="smallerheader"><font class="smallerheader"><b>Nº Activação</b></font></td>
<td class="smallerheader"><font class="smallerheader"><b>Nº Guia de Transporte</b></font></td></tr>
<%
ArrayList listaEnc=pesquisas.getNEncomenda(sXNENC);
for( int x=0;x<=listaEnc.size();x++)
{
xiol01p xiol=(xiol01p) listaEnc.get(x);
out.println("<tr bgcolor='#ffffff'>" +
"<td>" + xiol.getXCVND() + "</td><td class='smallertext'>" + xiol.getXNENC() + "</td>" +
"<td class='smallertext'>" + xiol.getXDEXP() + "</td><td class='smallertext'>" + xiol.getXNACT() + "</td>" +
"<td class='smallertext'>" + xiol.getXNGT() + "</td></tr>"
}
%>
The problem is here?
Thanks