Hi,
I have a JSP , a subset of which, having problem is as under :
<html>
<body>
<input type="text" name="myname" value="ABC"><br>
<input type="text" name="myname" value="JKL"><br>
<input type="text" name="myname" value="XYZ">
<table>
<%
{ int i;
String newnames[] = request.getParameterValues("myname"
for ( i = 1 ; i <= 3; i++ ) {
out.print("<tr><td>" + newnames + "</td></tr>" }
}
%>
</table>
</body>
</html>
I am interested in storing the values in the array newnames.
Is this possible and what code change do I require to attain this.
Thanks
I have a JSP , a subset of which, having problem is as under :
<html>
<body>
<input type="text" name="myname" value="ABC"><br>
<input type="text" name="myname" value="JKL"><br>
<input type="text" name="myname" value="XYZ">
<table>
<%
{ int i;
String newnames[] = request.getParameterValues("myname"
for ( i = 1 ; i <= 3; i++ ) {
out.print("<tr><td>" + newnames + "</td></tr>" }
}
%>
</table>
</body>
</html>
I am interested in storing the values in the array newnames.
Is this possible and what code change do I require to attain this.
Thanks