E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
getRealPath()
java 备份mssql
http://www.111cn.net/jsp/Java/33832.htm string webtruepath=getservletcontext().
getrealpath
(request.getservletpath
chenyuxiaoxiao
·
2010-12-17 09:00
java
sql
jsp
Web
.net
JEECMS学习
2.install_setup.jspapplication.
getRealPath
(webXmlFrom);就可以获得相对路径下的绝对路径3.Install.javapublicstaticvoiddbXml
cpp_lzth
·
2010-12-16 13:00
freemarker
exception
String
全文检索
Autowired
代码分析
获取java系统路径
request.
getRealPath
("/");//不推荐使用获取工程的根路径 2. request.
vanadiumlin
·
2010-12-15 14:00
java
jsp
servlet
java web工程中获取根目录的方法[转]
1 若是在JSP或是servlet中要获得虚拟根目录的话,可以使用config.getServletContext().
getRealPath
("/")或者是application.
getRealPath
ml365
·
2010-12-12 16:00
java
Web
jsp
servlet
servlet获取项目绝对路径
servlet中获得项目绝对路径 String filePath=this.getServletConfig().getServletContext().
getRealPath
xieruilin
·
2010-12-09 10:00
jsp
Web
servlet
java之上传文件
newBook();StringserverPath=((ServletConfig)request.getAttribute("servletConfig")).getServletContext().
getRealPath
wud_jiyanhui
·
2010-12-08 19:00
java之上传文件
newBook();StringserverPath=((ServletConfig)request.getAttribute("servletConfig")).getServletContext().
getRealPath
wud_jiyanhui
·
2010-12-08 19:00
java
exception
String
iterator
input
encoding
jsp的路径汇总
如项目名称:C:/ProgramFiles/ApacheSoftwareFoundation/Tomcat5.5/webapps/projectName,有以下两种获取方法:1)application.
getRealPath
goustzhu
·
2010-12-05 09:00
request获取各种路径总结
从request获取各种路径总结:request.
getRealPath
("url");//虚拟目录映射为实际目录request.
getRealPath
("./");//网页所在的目录request.
getRealPath
QYin
·
2010-11-28 15:01
生活
request
职场
路径
休闲
java 路径问题
1.1 JSP中获得当前应用的相对路径和绝对路径 根目录所对应的绝对路径:request.getRequestURI() 文件的绝对路径 :application.
getRealPath
jiangm520
·
2010-11-26 16:00
java
jsp
servlet
weblogic
网络应用
绝对路径与相对路径
文件的绝对路径相对路径:相对与某个基准目录的路径2.JSP中获得当前应用的相对路径和绝对路径根目录所对应的绝对路径:request.getRequestURI()文件的绝对路径:application.
getRealPath
simple_hui
·
2010-11-20 20:00
Servlet
java
springmvc+SWFUpload实现文件上传
HttpServletResponse response) throws Exception{ try{ String uploadDir = getServletContext().
getRealPath
cqyqing
·
2010-11-19 17:00
JavaScript
spring
html
jsp
Flash
java web 获取 相对和绝对路径
jivam/blog/item/94a7871bad7a11f3af5133da.html 项目获取真实路径(下载文件使用) 获取当前站点目录的绝对路径: 方法: request.
getRealPath
zhaowei_520
·
2010-11-17 20:00
java
jsp
Web
windows
linux
Java Request方法总结
String filePath=this.getServletConfig().getServletContext().
getRealPath
("/");
wentao365
·
2010-11-15 14:00
java
搜索引擎
Google
Yahoo
Scheme
JSP相对路径,真实路径
有些地方得用到真实路径,如删除文件之类的,可以用request.
getRealPath
("/")获得,但这个方法在jdk1.5之后就过期了,可以用request.getSessi
yzmduncan
·
2010-11-02 09:00
jsp
request获取各种路径总结
从request获取各种路径总结: request.
getRealPath
("url");//虚拟目录映射为实际目录 request.
getRealPath
(".
wuhaidong
·
2010-10-18 17:00
eclipse
Web
jsp
浏览器
F#
Tomcat/Weblogic下的路径问题
1.关于request.
getRealPath
的出错 问题: String filename = request.
getRealPath
(filename) //出了错 ----------------
lylhelin
·
2010-10-15 17:00
tomcat
Web
weblogic
asp.net
asp
Java Web获取Web应用根路径
最基本的 1,request.
getRealPath
("/");这个方法已不推荐用 2,在Servlet 里用this.getServletContext().
hz_chenwenbiao
·
2010-10-13 20:00
java
Web
jsp
应用服务器
servlet
Java获取路径
Java获取路径(1)、request.
getRealPath
("/");//不推荐使用获取工程的根路径(2)、request.
getRealPath
(request.getRequestURI
songylwq
·
2010-10-13 09:00
java
java文件操作大全
文件的建立/检查与删除 String path=request.
getRealPath
(""); //out.println(path); File f=new File(path
chengzhi_hong
·
2010-10-11 13:00
java
C++
c
jsp
F#
java文件操作大全
文件的建立/检查与删除 String path=request.
getRealPath
(""); //out.println(path); File f=new File(path
chengzhi_hong
·
2010-10-11 13:00
java
C++
c
jsp
F#
关于serveletContext.
getRealPath
()方法
1.关于request.
getRealPath
问题: String filename=request.
getRealPath
(filename) ------------------- 信息: warning
aguang110
·
2010-10-11 10:00
tomcat
应用服务器
Web
weblogic
servlet
JavaEE路径陷阱之
getRealPath
JavaEE程序有一大路径陷阱,那就是ServletContext的
getRealPath
方法。我们常常使用
getRealPath
(“/”)来获得Web应用程序根目录的绝对路径。这是绝对要不得的!
qq398705749
·
2010-10-10 17:00
java
.net
jsp
javaee
servlet
java过滤器(Filter)二
答:可以定义一个servlet,这个servlet不需要映射,将其配置为在服务器启动时就启动,在这个servlet中可以获得ServletContext对 象,利用这个对象就可以获得我们感兴趣的文件的
getRealPath
liwen19840617
·
2010-10-08 23:00
java
Web
servlet
filter
action
include
DOM 写出XML
String servletPath = request.getSession().getServletContext().
getRealPath
(""); System.out.println
superxielei
·
2010-10-07 11:00
html
xml
F#
DOM 写出XML
String servletPath = request.getSession().getServletContext().
getRealPath
(""); System.out.println
superxielei
·
2010-10-07 11:00
html
xml
F#
DOM 写出XML
String servletPath = request.getSession().getServletContext().
getRealPath
(""); System.out.println
superxielei
·
2010-10-07 11:00
html
xml
F#
在Servlet与JSP中取得当前文件所在的相对路径与绝对路径
根目录所对应的绝对路径:" + request.getServletPath() + ""); String strPathFile = request.getSession().getServletContext().
getRealPath
liuyuru
·
2010-10-05 10:00
jsp
servlet
struts
iReport输出为HTML或PDF、XLS、DOC【输出HTML两种方法】
fromcfg_static_user_relation";如果传SQL语句的话用该句 StringReportModel="/test/test.jasper"; FilereportFile=newFile(application.
getRealPath
uule
·
2010-09-29 13:00
html
C++
c
mysql
jdbc
iReport输出为HTML或PDF、XLS、DOC【输出HTML两种方法】
fromcfg_static_user_relation";如果传SQL语句的话用该句 StringReportModel="/test/test.jasper"; FilereportFile=newFile(application.
getRealPath
uule
·
2010-09-29 13:00
html
C++
c
mysql
jdbc
Request中getContextPath、getServletPath、getRequestURI、request.
getRealPath
的区别
假定你的webapplication名称为news,你在浏览器中输入请求路径:http://localhost:8080/news/main/list.jsp则执行下面向行代码后打印出如下结果:1、System.out.println(request.getContextPath());打印结果:/news 2、System.out.println(request.getServletPath()
frozen_cmlei
·
2010-09-28 10:00
tomcat
jsp
Web
浏览器
F#
HttpServletRequest中getContextPath,getServletPath,
getRealPath
,getRequestURI的区别
一眼看到这些获得获得路径的不同方法,有点迷糊,自己试验的一把,将结果贴出…… 请求过去的地址:http://localhost:8080/myweb/logistic/index.jsp getContextPath >>>>>>>>> /my
sunliyings17
·
2010-09-27 16:00
jsp
F#
关于serveletContext.
getRealPath
()获得应用绝对路径的问题
request.
getRealPath
用于获取应用的绝对路径,但现在已经建议不要使用了。
yinlongfei
·
2010-09-26 14:00
Web
servlet
JSF获取当前应用的路径
request = ( HttpServletRequest ) context.getExternalContext().getRequest();String rootPath = request.
getRealPath
yinlongfei
·
2010-09-26 13:00
jsp
Web
css
servlet
JSF
Java类中的文件路径
getRealPath
():仅限使用在servlet中,可以动态获得文件的绝对路径,部署在服务器上的工程通常要查看部署后服务器中的路径。 this.getServletContext
lectery
·
2010-09-26 12:00
java
xml
Web
工作
servlet
首页静态页面生成
generatorHtml() { String html = ""; String filePath = ServletActionContext.getServletContext().
getRealPath
liwy2008
·
2010-09-21 14:00
html
windows
web中的几种路径
web中的几种路径: servletContext.
getRealPath
("/") , 这个是得到应用的绝对路径, 比如:F:\apache-tomcat-5.5.17\webapps
zhengzhusheng
·
2010-09-20 17:00
apache
tomcat
Web
jsp
workflow
jsp报表
<% File reportFile = new File(application.
getRealPath
("/ireport/xueji.jasper
jimingliu
·
2010-09-18 10:00
html
jsp
mysql
jdbc
Java基础知识总结~持续学习中
ProPertiesUtil.getValue("/abc.properties","tmp_img_path");Stringpath=ServletActionContext.getServletContext().
getRealPath
uule
·
2010-09-14 13:00
Java
C
C++
C#
OS
Request中getContextPath、getServletPath、getRequestURI、request.
getRealPath
的区别
假定你的工程名称为projects,你在浏览器中输入请求路径: http://127.0.0.1:8080/projects/pages/newForm.jsp 则执行下面向行代码后打印出如下结果:1、 System.out.println(request.getContextPath());打印结果:/projects 2、System.out.println(request.ge
wukunlsy
·
2010-09-06 21:00
C++
c
jsp
浏览器
servlet
转:java获取根路径有两种方式
//java.chinaitlab.com/net/818899.html java获取根路径有两种方式: 1),在servlet可以用一下方法取得: request.
getRealPath
yangyiqian
·
2010-09-04 22:00
java
tomcat
Web
weblogic
servlet
java中当前路径的获取
1、在servlet中获取JSP所在的路径 this.getServletContext().
getRealPath
("upload")+File.separatorChar
yingbin920
·
2010-08-31 18:00
java
tomcat
jsp
servlet
ide
getRealPath
()和getContextPath()的区别
在程序中常常要获取文件的路径,有的时候需要用到相对路径而有的时候就要用到绝对路径,一提到绝对路径大家一定想到了
getRealPath
()但是这个方法已经不推荐使用了,但是我们还必须要得到绝对路径怎么办呢
sucre03
·
2010-08-23 20:58
职场
休闲
getRealPath
()和getContextPath()的区别
在程序中常常要获取文件的路径,有的时候需要用到相对路径而有的时候就要用到绝对路径,一提到绝对路径大家一定想到了
getRealPath
()但是这个方法已经不推荐使用了,但是我们还必须要得到绝对路径怎么办呢
sucre03
·
2010-08-23 20:58
职场
休闲
servlet/jsp 获取绝对路径和相对路径
request.
getRealPath
() 已经不被推荐!
dying
·
2010-08-20 20:00
servlet
servlet获取项目绝对路径
servlet中获得项目绝对路径 String filePath=this.getServletConfig().getServletContext().
getRealPath
thoreau
·
2010-08-20 11:00
Web
jsp
servlet
JSP中如何获取当前文件的绝对路径
可在JSP中就不这么简单了,request.getRequestURI(),application.
getRealPath
("/"),等似乎都不能完全解决问题。
sccdry
·
2010-08-17 09:00
jsp
jdbc
Microsoft
Access
在参数中使用方法时需要注意的问题
*/ public static boolean checkVirtualPath(String virtualPath) { File file = new File(
getRealPath
sunflowers
·
2010-08-11 15:00
方法
java获得web的根路径
摘自:http://www.chentaoqian.com/archives/161 java获取根路径有两种方式: 1),在servlet可以用一下方法取得: request.
getRealPath
linjianqing
·
2010-07-29 10:00
java
tomcat
Web
servlet
weblogic
java程序实现数据库备份与恢复
做一个项目中的数据库备份与恢复(MSSQL) 数据库备份 String webtruepath=getServletContext().
getRealPath
(request.getServletPath
zhangzhixxm
·
2010-07-27 14:00
java
sql
Web
jdbc
Microsoft
上一页
14
15
16
17
18
19
20
21
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他