Announcement Announcement Module
Collapse
No announcement yet.
Forwarding to the same FormController after a post Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Forwarding to the same FormController after a post

    I have a form that returns a success view that points to the same form controller. When the form is forwarded to however it blows up with the following

    Code:
    Neither Errors instance nor plain target object for bean name 'fooBean' available as request attribute'
    Is it possible to post the results of a form to the same page that made the submission?

  • #2
    Figured it out

    I solved the problem by changing my onSubmit method to take in a bindException and then adding the error model to the ModelAndView returned with

    Code:
    modelAndView.addAllObjects(errors.getModel());

    Comment

    Working...
    X