问题描述
我在gwt(点)中创建项目是项目名称...我想将图像存储在point/war/images文件夹中,而我给出了完整路径,例如C:\ Documents and Settings \ computer \ workspace \ m \ war \ images \,但是iamge将存储在images文件夹中,但是我想提供默认路径
我将"../war/images/"作为默认路径,但这给了我错误(他的系统找不到指定的路径)
i m creating a project in gwt (point) is project name ...i want to store a image in point/war/images folder, whaich i gave the full path like C:\Documents and Settings\computer\workspace\m\war\images\ tthe the iamge will stored in images folder but i want to give the default path
i give "../war/images/" as default path, but this give me error (he system cannot find the path specified )
任何机构都可以提供默认路径
can any body help to give the default path
推荐答案
通常,您将图像放在war/images
目录中,然后像访问它们一样
Usually you put images in the war/images
directory, and you access them like
Image img = new Image("images/my_image.jpg")
这篇关于如何在gwt中给出默认路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!