Hi,
I'm very new to JSP. When I use a for loop to iterate through an array, it always prints "null" at the end of the loop.
Here's how I'm using it:
Thanks for any help!
I'm very new to JSP. When I use a for loop to iterate through an array, it always prints "null" at the end of the loop.
Here's how I'm using it:
Code:
String[] myArray = request.getParameterValues("selectElement");
int i;
for (i=0; i < myArray.length; i++) {
out.println("myArray[" + i + "]</strong> = " + myArray[i] + "<br>");
}
Thanks for any help!