First of all I want to start by saying that I am new to both Spring and Spring MVC.
Here is my question:
I am using Spring 3.0 for doing this.
Event: User clicks a link on my homepage.
Output: I have to show an error message saying "Service not available" on my homepage (in case an error is thrown by a controller).
Currently I just want to simulate this scenario without any business logic so I want to have a link on my homepage and when I click it, it should go to the controller which will always throw an exception. All I need to do is to catch this exception and show it on my
Jsp page as "Service not available".
I have searched online but could not find a step by step tutorial to do this... Please guide me.