Wednesday, April 25, 2012

Re: Novice GWT question: Parallel Post Requests



On Mon, Apr 23, 2012 at 11:20 PM, LogicalGoetz <digital.goetz@gmail.com> wrote:
This may be a terribly novice question, but for each POST performed
by, say, a FormPanel, is there a subsequent HttpResponse generated by
the Servlet?

Obviously in standard situations this will play out as follows:
-client makes a POST request
-servlet handles the request
-servlet sends POST response
-client receives response

However, the situation I'm curious about is when something like this
occurs:
-client makes a POST request
-servlet handles the request
-client makes a POST request (this occurs a few times possibly)
-servlet handles these requests
-servlet generates responses
-client receives a series of responses (no guarantee on order)

From my current testing, it seems that if I have a FormPanel make
multiple POST requests while the servlet processes the requests, only
the first will ever generate a response.

AFAICT, if u have a (html) form (which wrapped by a formpanel), this will be posted only once to server , for which u'll get a response, this form in this case will not be available for u anymore on the client side to do a re-post.

or did i misunderstanding when u says "a FormPanel make
multiple POST requests " ?



 
 Is this the nature of Java
servlets, my client application (firefox), the http specification, or
possibly a coding blunder on my part?

Thank you in advance for any information,
    Mike

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate