I am using Hibernate for Database Access. I have a single controller for doing both 'add' and 'edit' to database and the controller extends SimpleFormController. To place a command object in session i used controller's formBackingObject() method. In that method i tried to retrieve an object from database by the object_ID to put it to the command object. But if there is no object found for that given object_ID then an exception occur. I become able to catch the exception but cannot showing the error in a specified view page.
How can i show that error in my specified page.