I have configured the SimpleMappingExceptionResolver in my web application, which is handling all the unexpected exceptions in the application and directing the user a to simple error page for recovery.
But what would be a best practice of handling an expected exception (more specifically: exception caused by hibernate optimistic concurrency control)?
I don't want the user to be directed to a new error page, but allow him/her to continue working in the same jsp page. What is the best method to achieve this?