Hi,
Since the related coding is in more than 2 pages... i have given u the coding as like mine which is as follows
String firstnames[] = {"Ram","Ragu","Ravi"};
String lastnames[] = {"Ram","Ragu","Ravi"};
String designation[] = {"CEO","Programmer","Sys Admin"};
String ValueString;
int i = Integer.parseInt(request.getParameter("index"));
String arraynames[] = {"firstnames","lastnames","designation"};
for(int j=0;j<3;j++)
{
out.println(arraynames[i] + "[" + j + "]");
}
While calling the above page if i pass the index as 0 i get the o/p as follows
firstnames[0] firstnames[1] firstnames[2]
for 1 o/p is
lastnames[0] lastnames[1] lastnames[2]
But i want the values which has been filled with this array names.
Similarly 10-15 arrays i have in my own coding and i can get the array name as above said using index. But i could not able to convert the string such as
lastnames[0],
lastnames[1],
lastnames[2]
to array object.
Hope u got the problem rightly.
Thanks in advance for ur help.
B.Prakash