Lo dejé así y muestra null o el error que arroja abajo:
Código:
int i = 0;
String prod[] = new String[2];
while(rs2.next())
{
prod[i] = rs2.getString("detprod");
request.getSession().setAttribute("PROVIDERLIST", prod);
Código:
<%! String prod[] = new String[2]; %>
<% prod = (String[]) request.getParameterValues("PROVIDERLIST");
for(int loopIndex = 0; loopIndex < 2; loopIndex++){
out.println(prod + "<BR>");%>%>
}
%>
EL error que me arroja es:
org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
PWC6199: Generated servlet error:
'catch' without 'try'
PWC6199: Generated servlet error:
')' expected
PWC6199: Generated servlet error:
not a statement
PWC6199: Generated servlet error:
';' expected
PWC6199: Generated servlet error:
'finally' without 'try'
PWC6199: Generated servlet error:
'try' without 'catch' or 'finally'
PWC6199: Generated servlet error:
reached end of file while parsing