How can a user download a file in client side (Google Web Toolkit)
You REALLY need to distinguish between GWT client side java code and server side java code. On the client side in your GWT Java Code String url = GWT.getModuleBaseURL() + “downloadService?fileInfo1=” + fileInfo1; Window.open( url, “_blank”, “status=0,toolbar=0,menubar=0,location=0”); On server side in your non-gwt Java code- In web.xml <servlet> <servlet-name>downloadService</servlet-name> <servlet-class>AAA.BBB.CCC.DownloadServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>downloadService</servlet-name> <url-pattern>/<gwtmodulename>/downloadService</url-pattern> </servlet-mapping> … Read more