I have a jsp page where user selectes a file for download , the request goes to spring Controller where I am doing some file handling, in case FileNotFound exception occurs I want to show a error message on the same jsp page from where the request has been made. I have tried Spring reference but it explains about errors which are related to form bean and bind to fields. I don't have any form bean I want to show controller errors on JSP page. Can any one please help me on this? Thanks in advance!
You implement the interface and inside the method you check to see if the Exception passed is that exception and then return the ModelAndView where the view string is the view that is the error page you wanted to display.