You can configure the "error page" section of your web deployment descriptor to do such things see your servlet specification for exact declaration.
It should be something like :
<error-page>
<error-code>404</error-code>
<location>/jsp/exception.jsp</location>
</error-page>
David

