Hi all, My servlet is creating images that I need to send to the client. My first thought was save the image to a file, then send the path to that image to the client, which can then call new Image (GWT.getModuleBaseURL () + imagePath);
This worked just fine in the development environment. But when I deploy to Tomcat, if I try to use a relative path, it does it from where Tomcat was started, rather than from my module's base. For obvious reasons, I'd prefer not to try to save images to a hard-coded path (makes it a bit difficult to move the app around). Is there a clean way to get my module's base path, so I can save the images relative to that? If not, what IS the approved way to pass program generated images to the client? TIA, Greg -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
