title: How to access an HTML checkbox value using Java in a JSP file?
body: <p>So I have a checkbox method:</p>
  
  <pre><code>&lt;input type="checkbox" name="selectedFees" value="$185"&gt;Hotel Accommodation (Conference Guest Special Fee - Parking Included)&lt;br&gt;
  </code></pre>
  
  <p>So in my JSP file, in  order to extract the value, I did </p>
  
  <pre><code>String[] selectedFees = request.getParameterValues("selectedFees");
  </code></pre>
  
  <p>And I get <code>["$185"]</code>. </p>
  
  <p>However, I also want to get the string <code>Hotel Accommodation (Conference Guest ...</code> string. </p>
  
  <p>I was wondering if this is even possible or what other method can I use to accomplish this. </p>
  
  <p>Any help would be appreciated. Thanks!</p>