Stephane Cloutier wrote:
>
>         I have a form which the action tag call a servlet with POST method.  The
> problem is that in fact, the action tag would have to call the servlet
> about 6 times with differents parameters on a single click of the submit
> button.  I've got the idea to include an hidden field in the form with the
> encode address of the second request (which itself contains the encode
> address of the third request and so on...) but I think this makes the
> server crazy as the data passed in the GET encode URL are to huge.
>
>         Is there a way to automatically pass data in POST?  It's easy to make a
> link like: "www.anything.com?parameter=value&..." to automatically pass
> data with GET but the only way I know with POST, is it form and imply a
> submit button click by the client.  There's certainly a lot of ways of
> doing what I want to but I would like to have the more clean and generic
> way, any ideas?  Maybe a javascript could submit the form in a user
> transparent way?

Yes, that's the whole point of POST: to send unlimited data to the server, more
data than a GET can submit in the URL.

All the data is contained in a form in an HTML page. When the user causes the
form to be submitted (usually by clicking a submit button in the form) all the
parameters the were selected, typed, etc. are submitted by the browser to the
server.

See http://developer.netscape.com/docs/manuals/htmlguid/index.htm for
information about forms.

K Mukhar

___________________________________________________________________________
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