如何在gwt中给出默认路径 [英] how to give the default path in gwt

查看:98
本文介绍了如何在gwt中给出默认路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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中给出默认路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆