getServletContext().getRealPath("/log/"),括号里的参数什么意思哈?偶是新手,第一次遇到。。
解决方案 »
- 跪求compass中clob字段的解决方案!急!!!
- 公司需要找人开发软件 帮忙先估个价格跟开发周期
- 如何实现jar包的自动下载运行?
- 一道简单的程序题!
- 跪求jbuilder中出现这样的问题Unable to load document from file (.....testWebModule/WEB-INF/web.xml)
- outofMemoryError:java heap space异常
- 假如我要建立一个com的包,那么这个包应该放在哪里呢?而且我有jdk开始执行的时候,我又应该从那个目录开始执行呢?
- 怎么让Session失效!
- unix下连接连接oracle的问题 ,up有分
- 请问何处有关于JSP和SERVLET的好书?
- 手动部署tomcat怎么做啊?
- jsp中如何将文件的真实地址找出来。不是URL地直址
public java.lang.String getRealPath(java.lang.String path)Returns a String containing the real path for a given virtual path. For example, the path "/index.html" returns the absolute file path on the server's filesystem would be served by a request for "http://host/contextPath/index.html", where contextPath is the context path of this ServletContext.
The real path returned will be in a form appropriate to the computer and operating system on which the servlet container is running, including the proper path separators. This method returns null if the servlet container cannot translate the virtual path to a real path for any reason (such as when the content is being made available from a .war archive).Parameters:
path - a String specifying a virtual path
Returns:
a String specifying the real path, or null if the translation cannot be performed