Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configure success view to be the same form view

 
Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a question about success view in Spring MVC 2.5.

Supposed my workflow is like this: I have a JSP which has a search functionality. On click of the find button,
I wanted to show the same jsp again with the table populated.
Here's my sample jsp.


I configured my controller like this. Both form view and success view are the same.



Here's my controller.



Problem is, when I click the find button. I encounter below error.

Neither BindingResult nor plain target object for bean name 'equipmentdetail' available as request attribute

On click of the find button, I wanted to retain the same criteria during the find and not clear it. I basically dont want to redirect but just a mere forward. Any thoughts?
 
Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I found my solution. Just in case anybody will be interested.

I look at the javadocs of simpleformcontroller and saw the showform method.

Better read the javadocs next time..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic