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()
Servlet(一)
content-disposition", "attachment;filename=02.jpg"); String path = this.getServletContext().
getRealPath
cbyniiaii
·
2011-10-27 10:00
http
servlet
java虚拟空间
然后把原来做的一个项目挂上去了,感觉还不错,感觉一时学到了好多东西, 不过注意的事项很多: 1,挂载到别人的服务器上面就不要用绝对路径了,或者去获得绝对路径或者是相对路径,方法如下: 绝对路径:application.
getRealPath
womendu
·
2011-10-27 03:00
java
java虚拟空间
然后把原来做的一个项目挂上去了,感觉还不错,感觉一时学到了好多东西,不过注意的事项很多:1,挂载到别人的服务器上面就不要用绝对路径了,或者去获得绝对路径或者是相对路径,方法如下:绝对路径:application.
getRealPath
wclxyn
·
2011-10-27 03:00
java
tomcat
数据库
mysql
jdbc
null
weblogic war 路径 getServletContext().
getRealPath
() 和request.
getRealPath
weblogic获取路径总是为NULL 通常情况下载tomcat中 我们以前使用 HttpServletRequest request; request.
getRealPath
(arg0);
尙善若水
·
2011-10-24 15:00
weblogic
request
getRealPath
JAVA 取得当前目录的路径
文件路径/web路径/url地址在写java程序时不可避免要获取文件的路径...总结一下,遗漏的随时补上1.可以在servlet的init方法里Stringpath=getServletContext().
getRealPath
haha9737
·
2011-10-21 10:20
java
JAVA 取得当前目录的路径
文件路径/web路径/url地址在写java程序时不可避免要获取文件的路径...总结一下,遗漏的随时补上1.可以在servlet的init方法里Stringpath=getServletContext().
getRealPath
hehe9737
·
2011-10-21 10:00
java
jsp
String
servlet
File
服务器
ServletContext应用(No.33)
ServletContext应用:一、利用ServletContext对象读取资源文件1、得到文件路径二、读取资源文件的三种方式第一种:(getResourceAsStream()方法)第二种:(
getRealPath
touchinsert
·
2011-10-19 18:00
servletContext
ServletContext应用(No.33)
ServletContext应用:一、利用ServletContext对象读取资源文件1、得到文件路径二、读取资源文件的三种方式第一种:(getResourceAsStream()方法)第二种:(
getRealPath
webcode
·
2011-10-19 18:00
servletContext
struts2中取得文件的绝对路径的方法
方法1: ServletActionContext.getServletContext().
getRealPath
(File.separator);//项目根路径如D:\xxx\项目名 这个方法如果在
songylwq
·
2011-10-18 16:00
struts2
struts2中取得文件的绝对路径的方法
方法1:ServletActionContext.getServletContext().
getRealPath
(File.separator);//项目根路径如D:\xxx\项目名 这个方法如果在action
songylwq
·
2011-10-18 16:00
struts
String
action
得到web根目录方法小结
(1)、request.
getRealPath
("/");//不推荐使用获取工程的根路径 (2)、request.
getRealPath
(request.getRequestURI(
qiyang199132
·
2011-10-10 19:00
Web
获取j2ee项目服务器根目录
Jsp 能使用HttpServletRequest对象
getRealPath
("/") 方法,或者getServletContext().
getRealPath
felly822
·
2011-10-09 08:00
J2EE
java,jsp路径的问题
blog.stnn.cc/javao0/Efp_Bl_1005423143.aspx 1.可以在servlet的init方法里 String path = getServletContext().
getRealPath
xitong
·
2011-10-07 14:00
java
文件上传点睛
grails文件上传点睛 def webRootDir = servletContext.
getRealPath
("/") def userDir = new File
java-007
·
2011-09-28 21:00
File
upload
grails
文件上传点睛
grails文件上传点睛 def webRootDir = servletContext.
getRealPath
("/") def userDir = new File
java-007
·
2011-09-28 21:00
File
upload
grails
文件上传点睛
阅读更多grails文件上传点睛defwebRootDir=servletContext.
getRealPath
("/")defuserDir=newFile(webRootDir,"/payload/
java-007
·
2011-09-28 21:00
file
grails
upload
java获取路径
String filePath = request.
getRealPath
("/");String filePath =application.
getRealPath
("/");String filePath
Isnotsuitable
·
2011-09-17 22:00
从request获取各种路径总结 request.
getRealPath
("url"); // 虚拟目录映射为实际目录 request.getRealPat
转:http://zjutsoft.iteye.com/blog/1084260 从request获取各种路径总结 request.
getRealPath
("url"); //
deific
·
2011-09-14 22:00
request
从request获取各种路径总结 request.
getRealPath
("url"); // 虚拟目录映射为实际目录 request.getRealPat
转:http://zjutsoft.iteye.com/blog/1084260 从request获取各种路径总结 request.
getRealPath
("url"); //
deific
·
2011-09-14 22:00
request
j2se与j2ee路径完全解决方案
如果是Servlet,Action,Controller,或则Filter,Listener,拦截器等相关类时,我们只需要获得ServletContext,然后通过ServletContext.
getRealPath
lya041
·
2011-09-11 17:59
java
J2SE
职场
路径
休闲
weblogic10部署问题
我是把log4j放到一个servlet中初始化.之前的写法是: String prefix = getServletContext().
getRealPath
("/");
liubo0_0
·
2011-09-01 14:00
weblogic
获取java系统路径
1. request.
getRealPath
("/");//不推荐使用获取工程的根路径 2. request.
getRealPath
(request.getRequestURI());//获取jsp的路径
shine0181
·
2011-08-09 16:00
java
jsp
unix
servlet
System
compiler
JAVA IO 流写LIST集合到EXCEL文件
GetPropertiesgp=newGetProperties("dictionary"); Stringspath=ServletActionContext.getServletContext().
getRealPath
thl331860203
·
2011-08-04 13:00
java
list
IO
String
Excel
Dictionary
request.
getRealPath
()的替代方法
request.
getRealPath
()的替代方法 获得根路径的几种方法 1,request.
getRealPath
("/");这个方法已不推荐用
xinkong1010
·
2011-08-03 14:00
request
request.
getRealPath
()的替代方法
request.
getRealPath
()的替代方法 获得根路径的几种方法 1,request.
getRealPath
("/");这个方法已不推荐用
xinkong1010
·
2011-08-03 14:00
request
Jsp,servlet,普通java类中获取应用名和磁盘路径的方法
pageContext.request.contextPath} 返回的是request.getContextPath() 2.jsp,servlet获得磁盘路径 request.
getRealPath
wentao365
·
2011-08-02 09:00
servlet
JSP IO流下载文件
"+application.
getRealPath
("/"+filenamedisplay)); //Stringcontext=session.getServletContext().
getRealPath
thl331860203
·
2011-07-28 16:00
java文件操作大全
*"%><html><head><title>文件读取</title></head><body><%Stringpath=request.
getRealPath
("");//取得当前目录的路径FileReaderfr
zxcdhm
·
2011-07-24 18:00
将字段写入到文件中
将字段写入文件中,保存为UTF-8格式 String path=request.
getRealPath
("");//获得项目路径 String str="";
countme
·
2011-07-21 17:00
文件
文件操作
String root = ServletActionContext.getRequest().
getRealPath
("/upload"); InputStream is = new
rooi
·
2011-07-21 00:00
文件操作
读写文件操作
) throwsIOException{ //系统文件路径 StringfilePath=this.servletRequest.getSession().getServletContext().
getRealPath
heartdiamond
·
2011-07-11 15:00
Jsp,Java中获取磁盘路径的方法
一般获取磁盘目录方法:取得虚拟目录对应的磁盘路径Web站点主目录的位置为JSP网页所在的目录位置变更:在jsp中,其实jsp就是servlet,jsp和servlet也都是一个classrequest.
getRealPath
mzhj
·
2011-07-06 16:00
java中获取系统路径的方法
Servlet中: ServletContext servletContext = config.getServletContext(); String rootPath = servletContext.
getRealPath
huangyunbin
·
2011-07-04 21:00
java
servlet
java中获取系统路径的方法
nbsp;ServletContext servletContext = config.getServletContext(); String rootPath = servletContext.
getRealPath
jt5
·
2011-07-04 15:00
java
系统路径
java中获取系统路径的方法
nbsp;ServletContext servletContext = config.getServletContext(); String rootPath = servletContext.
getRealPath
jt5
·
2011-06-29 09:00
java
jsp
servlet
struts2 开发小经验
通过数据库获取路径显示图片"/>4、图片上传:privateFilep_w_picpath;Filefile=newFile(ServletActionContext.getServletContext().
getRealPath
XBW1231
·
2011-06-26 10:02
职场
struts
休闲
WEB开发
struts2 开发小经验
3、通过数据库获取路径显示图片"/>4、图片上传:privateFileimage;Filefile=newFile(ServletActionContext.getServletContext().
getRealPath
XBW1231
·
2011-06-26 10:02
struts
struts2
职场
休闲
Java 相对路径与绝对路径的问题
getRealPath
("/"); 这将获取web项目的全路径 &nb
rdman
·
2011-06-13 22:00
java
Web
jsp
weblogic
servlet
request 获取各种路径
从request获取各种路径总结 request.
getRealPath
("url"); // 虚拟目录映射为实际目录 request.
getRealPath
(".
zjutsoft
·
2011-06-13 15:00
tomcat
应用服务器
jsp
Web
IE
一个简单的freemarker应用示例
String path = context.
getRealPath
("/template"); String filePath = context.
getRealPath
234390216
·
2011-06-11 12:00
freemarker
一个简单的freemarker应用示例
String path = context.
getRealPath
("/template"); String filePath = context.
getRealPath
234390216
·
2011-06-11 12:00
freemarker
一个简单的freemarker应用示例
String path = context.
getRealPath
("/template"); String filePath = context.
getRealPath
234390216
·
2011-06-11 12:00
freemarker
一个简单的freemarker应用示例
String path = context.
getRealPath
("/template"); String filePath = context.
getRealPath
234390216
·
2011-06-11 12:00
freemarker
一个简单的freemarker应用示例
String path = context.
getRealPath
("/template"); String filePath = context.
getRealPath
234390216
·
2011-06-11 12:00
freemarker
一个简单的freemarker应用示例
String path = context.
getRealPath
("/template"); String filePath = context.
getRealPath
234390216
·
2011-06-11 12:00
freemarker
一个简单的freemarker应用示例
String path = context.
getRealPath
("/template"); String filePath = context.
getRealPath
234390216
·
2011-06-11 12:00
freemarker
一个简单的freemarker应用示例
String path = context.
getRealPath
("/template"); String filePath = context.
getRealPath
234390216
·
2011-06-11 12:00
freemarker
一个简单的freemarker应用示例
String path = context.
getRealPath
("/template"); String filePath = context.
getRealPath
234390216
·
2011-06-11 12:00
freemarker
MultipartRequest上传后文件改名
FilefileDir=newFile(this.getServletContext().
getRealPath
("/upimg"));if(!
Cheung1021
·
2011-06-10 14:00
exception
Date
String
服务器
File
null
得到路径
根目录所对应的绝对路径:request.getServletPath(); 文件的绝对路径 :request.getSession().getServletContext().
getRealPath
xdy2008
·
2011-05-27 14:00
apache
tomcat
jsp
Web
servlet
上一页
12
13
14
15
16
17
18
19
下一页
按字母分类:
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
其他