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? -

java - How to create Table using Apache PDFBox -

mpi - Why is MPI_Bsend not returning error even when the buffer is insufficient to accommodate all the messages -