Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Prepopulate form data  RSS feed

 
Prasanna Raman
Ranch Hand
Posts: 410
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am working on a feature which pre-qualifies the user for an "offer" or a list of offers based on the information they enter on the form . On form submit, we show them an intermediate "loading" page before we take them to the "offers" they qualified for. We do input validation on all the data the user entered in the back end.

One of the requirements is that, if the SSN data they entered couldn't be found in the system, the user must be taken back from the intermediate "loading" page to the original form on which they entered their data, with their data pre-populated. How can I best accomplish this?

Our application uses Spring web flow and Spring MVC. I have been doing some research on this online, but so far I haven't been able to find a way to do this.

We can't use Ajax call to validate SSN because the SSN validation (and the decisioning) is done by a service which requires the whole form to be submitted to them.

Any ideas are welcome! Thank you so much.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!