How does request pass through filter even though servlet mapping is not present? : <p>I have web.xml which contains just a filter, Which maps to a specific URL pattern.
If I give a url which matches the pattern. It goes through the filter comes back and gives 404 status. I understand that this is because the there is no resource mapped in web.xml. Why would it go through the filter?</p>

<p>Can I keep a wrapper around filter response and modify the response to a meaningful one instead of giving 404?</p>
