qiant

新手上路

贴子数量 : 34
注册日期 : 4/30/2002 在线情况 : 离线
|
发表于: 6/8/2002 - 10:40 |
大家好:
现在我的一个JavaBeans需要知道该文件(Class)的绝对路径,不知道能有什么好方法得到,急啊,感谢!!! |
|
goodlz
|
发表于: 6/8/2002 - 10:45 |
this.getClass()中有一个方法 ____________________
WebSphere的支持者,J2EE的爱好者,电子商务的探索者! |
|
yangxiaozhi

新手上路

贴子数量 : 2
注册日期 : 6/11/2002 在线情况 : 离线
|
发表于: 6/11/2002 - 07:18 |
getclass.getresource |
|
qiant

新手上路

贴子数量 : 34
注册日期 : 4/30/2002 在线情况 : 离线
|
发表于: 6/12/2002 - 01:00 |
getClass().getResource(String)
不知道最后的一个String应该填什么东西,并且,这样也是返还一个URL,能将这句话的详细写出来吗,非常感谢! |
|
lyf_79

新手上路

贴子数量 : 1
注册日期 : 5/15/2002 在线情况 : 离线
|
发表于: 6/17/2002 - 08:49 |
试试 request.getRealPath(".") |
|