Thursday, August 22, 2013

Re: Access POST parameters via servlet?

On Thu, Aug 22, 2013 at 11:23 AM, John <malloyjw@miamioh.edu> wrote:
I'm creating a GWT application that, when accessed, will be passed POST parameters (user id, etc.).

What does this mean?  Your GWT application runs on the client side.  Are you saying the host page is sent to the browser in response to an HTTP POST request?

If so, the typical way to propagate extra information to the client app is to embed them in the host page (e.g., a hidden <div> with some data, or a <script> tag that stores a JSON value into a global variable), and have your GWT application inspect the page at startup for this data.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment