title: How to send label parameter from JSP to servlet?
body: <p>I have a jQuery dialogue box which contains values as checkboxes. On selecting the checkboxes I am storing the selected values into label. Next I have to send these values from label as parameter through form to servlet but I don't know how to complete it.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;form action="CallTimer" method="GET"&gt;
      &lt;label class="button2"&gt;Set Date: &lt;/label&gt;
      &lt;input type="text" name="date" id="date" size="4"&gt;
  
      &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;input type="Submit" name="Submit" value="Submit" id="Submit"&gt;
  
      &lt;br/&gt; 
      &lt;a href="javascript:void(0)" id="departmentlink" class="button2"&gt;Select Reporting Level&lt;/a&gt;
      &amp;nbsp;&amp;nbsp;
      &lt;label class="button2" style="display:none" id="depart"&gt;&amp;nbsp;Department&lt;/label&gt; 
  &lt;/form&gt;
  </code></pre>
  
  <p>I am retrieving these parameters in my Servlet as:</p>
  
  <pre><code>String reportname=request.getParameter("depart");
  System.out.println(reportname);
  </code></pre>
  
  <p>But it is returning null values. Please help me.</p>
  
  <p>Thanks in advance.</p>