Java Spring - how to handle missing required request parameters
<p>Consider the following mapping:</p>

<pre><code>@RequestMapping(value = "/superDuperPage", method = RequestMethod.GET)
public String superDuperPage(@RequestParam(value = "someParameter", required = true) String parameter)
{
    return "somePage";
}
</code></pre>

<p>I want to handle the missing parameter case by <strong>not</strong> adding in <code>required = false</code>. By default, <code>400</code> error is returned, but I want to return, let's say, a different page. How can I achieve this?</p>