Thank you.
I have uploaded an image:1232202393156.jpg to directory:src..client/
public/images,and then in method onSubmitComplete(),I set POJO
object:model.setUrl(images/1232202393156.jpg),and create an Images
object:new Image(model.getUrl()),add this image object to
RootPanel,but got this
I can't tell you what your problem is exactly, but I CAN tell you
allowing your upload servlet to have write access
to your applications live deployment folder leaves your whole site
about 60 seconds from being totally 0wN3d.
Not to mention a new WAR deploy might wipe out everything you
For testing,I uploaded an image into direcotry:src/../client/public/
images(servlet will do that),and created an image object and call
setUrl() method to set url,so the question is how I can get and
specify this url(src/../client/public/images/) in client side.thank
you.
Use the GWT Image object in your client side code:
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/Image.html
com.google.gwt.user.client.ui.Image img = new Image(images/
myImage.jpg);
or
img.setUrl(images/myImage.jpg);
As long as the image is within