In a FormController, you should be able to add an error (using addError) and then showForm() to return to the form.
Matt On 3/13/08, Carlos Ortiz <[EMAIL PROTECTED]> wrote: > Hi guys > > > > I now Spring MVC knows how to handle exceptions redirecting to a page. But > what about if I have a page and want to intercept exceptions and post a > message in the same page. i.e, suppose you have a form to capture a record, > then submit to the controller to save data but a primary key is violated, > then the page must inform this by telling a friendly message to user, not > redirecting him to another error page (well in some circumstances). > > Any help --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
