Why not just use req.getParameterNames() and req.getParameterValues() to get
the parameters and store them in the database.
(*Chris*)
----- Original Message -----
From: Dr. Dragomir D. Dimitrijevic <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 24, 1999 7:54 AM
Subject: Re: Post Statement from JS
Should be fairly easy using one of classes:
java.io.StreamTokenizer or java.util.StringTokenizer
DD
----------
From: Antonio Villafana[SMTP:[EMAIL PROTECTED]]
Sent: Friday, September 24, 1999 02:33 PM
To: [EMAIL PROTECTED]
Subject: Post Statement from JS
<<File: ATT00000.html>>
Hello Everyone,
Here is the scenario.... I would like to store the information from a POST
statement passed to my servlet from a JavaScript (.js) file. The .js file
collects all relevant 'name=value' pairs from .html pages and puts them into
a long string, e.g.
name=joe;age=23;book=getalife;poor=yes;goodlooking=verymuchso;javaguru=;car=
;computer=compaq
How do I parse this POST, and store the info in an Oracle DB. Or, if you
know how to just parse it and send it to the screen, with one or two name
pair per line, that would be very helpful as well.
Thanks to everyone out there for there support.
Antonio
___________________________________________________________________________
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