hi helpers,
i'm trying to read an array from jsp in to java(servlet) page
the code is
JSP CODE (readingcheck box values):
String select[] = request.getParameterValues("sel");
if (select != null && select.length != 0) {
for (int i = 0; i < select.length; i++) {
out.println(select[i]);
its working ok!
JAVA CODE(reading array values):
String select2[] = request.getParameterValues("select");
for (int i = 0; i < select2.length; i++)
{
System.out.println(select2[i]);
}
the above java code didnt worked.
i also tried this
String[] select= new String[100];
for (int i = 0; i <10 ; i++)
{
select[i] = request.getParameter(select[i]);
System.out.println(select[i]);
}
this didnt worked too
is there any other way to read array values from jsp page?
where am i wrong?
thanks,
BeanBoy !