You accomplish step three by returning a CGI header that contains the
"application/pdf" MIME type. The browser handles the rest.

On Tue, Jul 13, 2010 at 3:49 PM, citress <citr...@gmail.com> wrote:

> Hi, the use case here is for report generation. I would like to be
> able to submit a GWT form to a servlet that will generate the report,
> and upon form submission, pop-up a new browser window containing the
> PDF report in it.
>
> I have read that the easiest way to do this is to POST the form to the
> servlet, generate the report, put the report into the user's
> HttpSession, return a token that identifies the report in the session
> back to the client, and then open a pop-up window issuing a GET
> request with the token. However this approach would require me to
> perform session cleanup as generating a lot of reports can bloat one's
> session.
>
> I would prefer to be able to (1) pop-up a window (maybe display a
> "Loading..." message), (2) POST the form to the servlet, and (3) on
> the callback of this request, change the content of the window to
> display the response from the request.
>
> Is this at all possible?? I can't figure out how to do step (3).
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to