Wednesday, November 11, 2009

Loading an image file from the base of the gwt app

Remember that the project module lives in an arbitrary location under the src folder.
So if I want to anchor my project at com.jed.healthcare.vitals I can place a file here at the base of the application.
Inside the application code I can load the image with the following code:

GWT.getModuleBaseURL() + "logo.gif"

No comments:

Post a Comment