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:

  1. make sure array initialized: string[] words = new string[2].
  2. make sure have input element inside form submitted.

Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -