Hi All, I need a suggestion. I have requirement of downloading file from the server. I am using GWT . Which one would be the best approach to send the request to the server , RequestBuilder or RPC. I have to send multiple report ids to the server. Based on the these report Ids I need make a service call at the server side and get the OutputStream.
If I am using Request Builder , Approach 1 : I can send all these report Ids as a comm separated string as a part of the request data and then parse them in the servlet to make the service call . But it's failing when I am trying to do Wndow.location.assign(Servlet_name+"?"+requestdata); Approach 2 : I can create a form and pass the Ids as a hiden parameter to servlet and then leave it to the browser. I won't do any explicit Wndow.location.assign(Servlet_name+"?"+requestdata);. As soon as My servlet flush the OutputStream , browser should take care of that as the OutputStream is sent as a part of response. No temp file being created here . - This is working fine. If I am using RPC call , Straight forward RPC Call. In the Service IMPL I am creating a temp file in the tmp folder and onSuccess() I am doing , String baseURL = GWTServiceUtil.getContextPath() + result; Window.Location.assign(baseURL); Th is working fine too.. Which one is the better among these too and why ? Thanks in advance , - Tapas -- 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.