File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes how to deserialize form data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to deserialize form data" Watch "how to deserialize form data" New topic

how to deserialize form data

sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 229
With jsp and jquery, I need to keep the form data in memory before calling 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.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
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.

I agree. Here's the link:
subject: how to deserialize form data
It's not a secret anymore!