• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Configure success view to be the same form view

 
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic