Friday, June 1, 2012

Re: GWT and HttpServletResponse

A trick I've used in this sort of application is to just POST a <form> to the file generating servlet with target="_blank". This will open a new window, but since the window is a file download, it just launches the file download instead of a new window. This combines the step of (1) Getting the download URL passed back to application (2) Opening said URL in a different window.

Sincerely,
Joseph

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/nMchBclnXIgJ.
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.

No comments:

Post a Comment