Código:
String query2 = "SELECT *FROM producto"; ResultSet rs2 = (ResultSet) sta.executeQuery(query2); int i = 0; String prod[] = new String[2]; while(rs2.next()) { prod[i] = rs2.getString("detprod"); request.getSession().setAttribute("PROVIDERLIST", prod[i]); i++; }
Código:
<%! String prod[] = new String[2]; %> <% prod = (String[]) request.getParameterValues("PROVIDERLIST"); out.println(" "+request.getSession().getAttribute("prod[0]"));%>