Could you code the values into the URL and have the servlet get the values as 
parameters? For example, consider an array a which contains { 1, 2, red, tree }. Now, 
code them into the URL like this:

http://path/to/servlet?a0=1&a1=2&a2=red&a3=tree

Then, in the servlet, use request.getParameter("a0") or request.getParameter("a0") or 
more generally, request.getParameter("an").

Would that work?

Regards,
John

John Ghidiu
Benderson Development Company Inc.
[EMAIL PROTECTED]
(716) 878-9376


-----Original Message-----
From: Sohaila Roberts [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 11:31
To: [EMAIL PROTECTED]
Subject: [SERVLET-INTEREST] opening a servlet connection via javascript
& sending it data..


Hi, I'm wondering if this is possible.. and how I would do it if it is
possible. I have a html page/form that collects a bunch of data and stores
it all in an Array using javascript. I want to send that array to my
servlet via an objectOutputStream type thing like i've done with applets
and servlets but i dont know how.. any one have any ideas?

thanks
Sohaila

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to