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

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -