title: How to remove HttpServletRequest parameters (in JSP)?
body: <p>How can an <code>HttpServletRequest</code> parameter (especially in JSP) be unset or removed (like in PHP using the <code>unset($_POST['index'])</code> function)? I have tried the following.</p>
  
  <pre><code>Map requestMap=request.getParameterMap();
  requestMap.remove("index");
  </code></pre>
  
  <p>but it says </p>
  
  <blockquote>
    <p>No modifications are allowed to a locked ParameterMap</p>
  </blockquote>
  
  <p>Is there a way to unset request parameters?</p>