Announcement Announcement Module
Collapse
No announcement yet.
Annotated Controller - how to handler exception on GET method Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Annotated Controller - how to handler exception on GET method

    Hi for all,
    on POST method we have a way to handler exception and show the message to user on BindingResult(result.reject(ex1.getMessage(), ex1.getMessage()). With this, Spring show the message on JSP in <form:errors> tag. That's OK and good.

    But on GET method the BindingResults doesn't exists, how can I handler the exception?
    I need show the error on the same page of success view(on form:errors tag), I don't want show the exception on the main Exception page(configured in SimpleMappingExceptionResolver).

    thanks
Working...
X