title: How to pass an array of checkbox value From one JSP page to another
body: <p>I am a beginner. I want to pass an array of check box values from one JSP page to another. The page getting data is</p>
  
  <pre><code>&lt;%
       ResultSet rs=s.notapprovedqns();
   %&gt;
   &lt;%                
       while(rs.next())
       { %&gt;
        &lt;tr&gt;&lt;td&gt;&lt;input name="qns[]" type="checkbox" value="&lt;% out.println(rs.getInt("question_id")); %&gt;" /&gt;&lt;/td&gt;&lt;td&gt;&lt;center&gt;&lt;%=rs.getString("question_id") %&gt;&lt;/center&gt;&lt;/td&gt;&lt;td&gt;&lt;%=rs.getString("question") %&gt;&lt;/td&gt;&lt;/td&gt;&lt;/tr&gt;
       &lt;% 
          }
        %&gt;
  </code></pre>
  
  <p>How can i receive check box values in JSP another page. I have tried the following code but its not working properly</p>
  
  <pre><code>String[] h=null;
  h=request.getParameterValues("qns[]");
  </code></pre>
  
  <p>But its passing the value</p>
  
  <pre><code>[Ljava.lang.String;@a0a595 
  </code></pre>
  
  <p>Please somebody help me to solve this problem.</p>