java - pass query string values in string array -
i getting problem while passing query string values in string array. statements following.
words[0]=request.getparameter("word1"); words[1]=request.getparameter("word2"); the above statements gives me exception , giving value 0. please me in regard.
thanks in advance.
possible solutions/causes:
- make sure array initialized:
string[] words = new string[2]. - make sure have
inputelement insideformsubmitted.