Hi,
I have a browser interface, using JavaScript, that recieves input from a user. When the user clicks on submit, the input is then sent to a servlet for processing.
I currently know of two ways to recieve this input.
1. Put the input as parameters in a URL for the servlet.
2. Use the Post method with the servlet to collect the values of everything on the form.
Choice 1 does not suit my needs. There are objects defined in JavaScript that I wish to use in my servlet. I want to access properties of these objects. I cannot seem to pass an object as a parameter in the URL.
Choice 2 does not suit me needs either. There are many, many values on the browser screen, and a few of them will be needed for each execution of the servlet.
What I want to do is send my JavaScript objects to the servlet. On the servlet, I want to access properties of the objects. Can I do this? If so, any ideas how? Can you point me down the right path?
Thanks for your insight,
Draug
I have a browser interface, using JavaScript, that recieves input from a user. When the user clicks on submit, the input is then sent to a servlet for processing.
I currently know of two ways to recieve this input.
1. Put the input as parameters in a URL for the servlet.
2. Use the Post method with the servlet to collect the values of everything on the form.
Choice 1 does not suit my needs. There are objects defined in JavaScript that I wish to use in my servlet. I want to access properties of these objects. I cannot seem to pass an object as a parameter in the URL.
Choice 2 does not suit me needs either. There are many, many values on the browser screen, and a few of them will be needed for each execution of the servlet.
What I want to do is send my JavaScript objects to the servlet. On the servlet, I want to access properties of the objects. Can I do this? If so, any ideas how? Can you point me down the right path?
Thanks for your insight,
Draug