Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to deserialize form data

 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
With jsp and jquery, I need to keep the form data in memory before calling window.open. When the popup page is closed, refresh the parent page and then restore the form data from memory.
I can use jquery .serialize the form data into string, and when refresh the parent page, onLoad() gets the formData from sessoin Storage.
But the problem now is I don't know how to deserialize the formData.

Here is my openWindow() js function:



when page refreshed (with onLoad()):



I have been googling for the topics, but couldn;t found a similar solution that suits my case.
If anyone can suggestion a way or point me to a tutorial or example, it will be very appreciated.
Thanks
Sam
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are going to have to split up the data in the memory and set all of the form fields with the values, there is nothing built in that does that for you.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic