Retaining values on a search form after submission


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Retaining values on a search form after submission

  1. #1
    Join Date
    Feb 2008
    Posts
    2

    Retaining values on a search form after submission

    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 :

    protected Object formBackingObject(HttpServletRequest request)
    throws Exception {
    return new Car();
    }


    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.

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Do the field values disappear after the search is done?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Feb 2008
    Posts
    2
    no actaully the values in the search field lost after the form submission and searching .
    No doubt search search is successful but the search field lost its value.
    Any idea from ur side

Similar Threads

  1. Replies: 0
    Last Post: 03-05-2007, 10:43 PM
  2. html form values to xml
    By siva in forum XML
    Replies: 0
    Last Post: 11-02-2001, 12:51 AM
  3. Replies: 0
    Last Post: 10-30-2001, 01:34 AM
  4. Retaining values
    By coochi in forum XML
    Replies: 0
    Last Post: 12-11-2000, 05:27 PM
  5. Printing after FORM Submission (!?)
    By drew in forum ASP.NET
    Replies: 0
    Last Post: 04-26-2000, 09:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center