I'm a little late coming in on this thread, but I think that there
has been a bit of information lacking.  The difference between a GET
request and a POST request is that the GET is passed as part of the URL
and placed into the program's environment.  POST is passed as part of the
body of the request and made available as a stream, usually as a stdin.

        In order to send a POST the body is encoded using ampersands as the
seperator (&), spaces are converted to plus marks.  As long as the body
follows this convention, the Java servlet container can parse the input.
(You can build this body directly.)

        The other way that such thing could be passed are as cookies, since these
are always sent to any URLs within the cookie "domain" (not always the
same as the DNS domain).

        As a last caveat, if you do use cookies, you should realize that
using a string to encode this stuff might run into the prevalent condition
that Java Strings are limited to 64K when serialized.

On Thu, 8 Jun 2000, James Wilson wrote:

>         Ok, I have a servlet that creates an Image and encodes it into the
> ServletOutputStream directly.  I've been sending the data to the servlet via
> the query string.
>
> So my HTML looks something like this:
>
> <img src"/servlet/GenericSortedStackBarChartServlet?a=?&b=?" . . . >
>
> But I've just learned that the query string can only be so long.  After
> about a half of page of data my servlet hangs because the query string can't
> be that long.  To data insult to injury my data is calculated in ASP pages
> (I'll rewrite it if I have to!).  Having a FORM submit is unexceptable --
> what are my options?
>
> I've thought about JSP -- but I'm not sure that fixes the problem with out
> using session variables to make the data accessable to my servlet -- I guess
> I could.
>
> What do you guys think?
>
> Thanks,
>
> James Wilson
> HealthFirst Corp.
> [EMAIL PROTECTED]
>

___________________________________________________________________________
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