title: Refer to html elements by class in spring mvc controller
body: <p>I know how to refer to HTML elements by name with request.getParameter("foo");
  But I have various groups of elements within a form that each have a seperate 'class' attribute. Is there any way to refer to these by their class names?
   My controller is in the form below:</p>
  
  <pre><code>@Controller
  @MultipartConfig()
  public class FooController {
      //get parameters
      return "view";
  }
  </code></pre>
  
  <p>My HTML input elements are in the form below:</p>
  
  <pre><code>&lt;input class="bar" type="checkbox" name="elementName" /&gt;
  </code></pre>
  
  <p>Basically I want to say in my controller, "give me all the elements of class 'bar'". Is it possible?</p>