getCodeBase()相对路径
getDocumentBase 绝对路径
getDocumentBase 绝对路径
解决方案 »
- 如何用java将一个16进制的数转为单字节的10进制数
- 这种情况下的接口该如何设计
- JInternalFrame的问题
- JAVA里怎么做运算符重载?
- 请教一下,java的正则表达式怎么用?(如:replaceAll()怎么用?)
- 求教:statement语句不会执行,也没捕捉到任何异常信息?
- ▲▲为什么?为什么?下拉菜单浮起来了▲▲
- 一个涉及ListIterator小程序的问题。
- 如何让文本框只对数字和退格有效?
- Exception in thread "main" java.lang.NoSuchMethodError: main
- 哪儿有《think in java》的下载!!!!
- 关于自建包的困惑?
getDocumentBasepublic URL getDocumentBase()
Returns an absolute URL naming the directory of the document in which the applet is embedded. For example, suppose an applet is contained within the document:
http://java.sun.com/products/jdk/1.2/index.html
The document base is:
http://java.sun.com/products/jdk/1.2/
Returns:the URL of the document that contains this applet.getCodeBasepublic URL getCodeBase()
Gets the base URL. This is the URL of the applet itself.Returns:the URL of this applet.
String strCount="c:/tomcat/webapps/account/web-inf/classes/db.properties";
我是指我不知道c:/tomcat/webapps/account这一部分的信息,这是由客户安装的时候他们自己决定的,web-inf/classes/db.properties这部分是固定的,那在c:/tomcat/webapps/account/web-inf/classes/com/company/account/setup/proper.java文件该如何判断db.properties的路径啊?
谢谢!