title: Spring error page without redirect
body: <p>I'm trying to implement an error page that is shown if something goes wrong but without triggering a redirect.</p>
  
  <p>As far as i understand it a <code>InternalResourceViewResolver</code> should do the trick.
  i call "myurl" and this causes an error. the controller triggers my "error"-View and the view is shown instead of the normal response but the url of the resource is still "myurl".</p>
  
  <p>Unfortunately this does not work. my config:</p>
  
  <pre><code>&lt;bean id="cnManager" class="org.springframework.web.accept.ContentNegotiationManagerFactoryBean"&gt;
      &lt;property name="ignoreAcceptHeader" value="false" /&gt;
      &lt;property name="favorPathExtension" value="false" /&gt;
      &lt;property name="defaultContentType" value="text/html" /&gt;
  &lt;/bean&gt;
  
  &lt;bean class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver"&gt;
      &lt;property name="contentNegotiationManager" ref="cnManager" /&gt;
  
      &lt;!-- Define the view resolvers explicitly --&gt;
      &lt;property name="viewResolvers"&gt;
          &lt;list&gt;
              &lt;bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
                  &lt;property name="prefix" value="/WEB-INF/errors/" /&gt;
                  &lt;property name="suffix" value=".html" /&gt;
              &lt;/bean&gt;
          &lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>if i try to trigger my 500.html page in web-inf i only get a 404 response and the message that <code>/WEB-INF/errors/500.html</code> could not be found. additionally the log shows that there was a http request to exactly this url.</p>
  
  <p>does anybody have any suggestion on what i am doing wrong?</p>