title: Spring Framework validate request parameter or path variable
body: <p>I know I can validate forms in Spring, but can I apply similar validate to URL parameters? For example, I have a method in my controller as follows:</p>
  
  <pre><code>public String edit(@PathVariable("system") String system, 
      @RequestParam(value="group") String group,
      ModelMap model) throws DAOException {
  </code></pre>
  
  <p>Can I validate the values of <code>system</code> and <code>group</code> before the method is called, to ensure they are of a certain value or match a certain regex?</p>
  
  <p>Thanks</p>