title: How to make custom 404 page be a forward, not a redirect in Tomcat
body: <p>I've got a Spring MVC app served in Tomcat. When the user enters a page that isn't found, it displays my default 404 page, as set in web.xml</p>
  
  <pre><code>&lt;error-page&gt;
     &lt;error-code&gt;404&lt;/error-code&gt;
     &lt;location&gt;/errors/404/&lt;/location&gt;
  &lt;/error-page&gt;
  </code></pre>
  
  <p>The problem is that if the user goes to 
  <a href="http://mydomain/bad/url" rel="noreferrer">http://mydomain/bad/url</a></p>
  
  <p>it is redirected to
  <a href="http://mydomain/errors/404/" rel="noreferrer">http://mydomain/errors/404/</a></p>
  
  <p>This is annoying, because if a user types in an incorrect URL it's hard to see what the mistake was and correct it.</p>
  
  <p>After a 404 error, I'd like it to keep the original URL, but display the error page.  (i.e. a forward, not a redirect).  That's my impression of how most web servers work.  Is this possible?</p>