jsp - Values not getting stored in array -
hie, trying insert values array getting each value previous page (dynamic). problem these values not getting stored in array. null values being shown.the code follows.
string ins[][] = new string[numb][2]; for(int i=0;i<numb;i++) { string frwd = "frwd"+string.valueof(i); string posn = "posn"+string.valueof(i); ins[i][0] = request.getparameter("frwd"); ins[i][1] = request.getparameter("posn"); }
numb being number or rows in previous page , [2] represents number of dynamic columns .. please guide me ..
remove quotes in request.getparameter calls:
ins[i][0] = request.getparameter(frwd); ins[i][1] = request.getparameter(posn);
Comments
Post a Comment