• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

Retaining values on a search form after submission

Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All

I am using search in my spring application.
its the search for cars module.
I have some fields in it for the search. And i am using SimpleFormController for the search purpose.
After filling these fields this controller search successfully and the results are displayed on the same page below my search fields.
Now my problem is i want that after the submission and search the values of the search fields should remain on the search form as it was.
I am using like :

But i know it will not work as i do not require a new object of Car class.
What should i do that the field values remain same in the fields.??
I need it urgently if any body can suggest me i will be very thankful.
Reply With Quote
Where all the women are strong, all the men are good looking and all the tiny ads are above average:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic