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
getcontextPath
用FileUpload做得文件上传
/UploadFileServlet" method="post"target="hidden_frame"> webapp是项目的路径名Stringwebapp=request.
getContextPath
xiaozhao-521
·
2008-09-15 21:00
java
DAO
apache
servlet
Excel
servlet中几个获取路径方法的对比
如果请求的URL为:http://localhost:8080/webapp/login 那么分别调用request.
getContextPath
( )、request.getServletPath(
simlee
·
2008-09-12 23:00
Web
servlet
getContextPath
、getServletPath、getRequestURI的区别
你在浏览器中输入请求路径: http://localhost:8080/news/main/list.jsp 则执行下面向行代码后打印出如下结果: 1、 System.out.println(request.
getContextPath
zpl3001
·
2008-09-09 16:00
java
sql
tomcat
jsp
UP
getContextPath
、getServletPath、getRequestURI的区别
你在浏览器中输入请求路径: http://localhost:8080/news/main/list.jsp 则执行下面向行代码后打印出如下结果: 1、 System.out.println(request.
getContextPath
zpl3001
·
2008-09-09 16:00
java
sql
tomcat
jsp
UP
Tapestry里怎么实现Jsp里的ServletContext.getRealPath("/")的
getRequestCycle().getInfrastructure().
getContextPath
(); @InjectObject("service:tapestry.globals.WebContext
yefeishan
·
2008-09-05 15:00
jsp
tapestry
Struts 中jsp页面导入.css样式文件的问题
1.可以更改路径为相对路径,在<html>前加入 <% String path = request.
getContextPath
(); String basePath = request.getScheme
黑猪王子
·
2008-09-03 21:00
html
jsp
.net
struts
css
Web应用中的各种路径
假设网页访问地址: http://localhost:8080/tradeload/TestServlet Web应用context: /tradeload 各路径鉴定如下: request.
getContextPath
囧囧有神
·
2008-08-31 19:00
C++
c
Web
xml
Glassfish
servlet两种跳转比较
response.sendRedirect(response.encodeRedirectURL(request.
getContextPath
()+"/"+uri)); 和 RequestDispatcherrd
buxizhizhou530
·
2008-08-22 09:00
servlet两种跳转比较
response.sendRedirect(response.encodeRedirectURL(request.
getContextPath
() +"/" +uri));
zjx2388
·
2008-08-22 09:00
servlet
servlet url传递中文参数
表单: <form name="UploadForm" action="<%=request.
getContextPath
()%>/servlet/uploadservlet
helloJ
·
2008-08-21 09:00
java
servlet
request.
getContextPath
(),绝对路径,request.getRealPath
request.
getContextPath
()得到的是项目的名字,如果项目为根目录,则得到一个"",即空的字条串,如果项目为dzjc,/将得到dzjc/,服务器端的路径则会自动加上,应该就是指当前路径下的这
limon758
·
2008-08-13 20:31
javaScript
request.
getContextPath
(),绝对路径,request.getRealPath
看到很多人都喜欢用<%=request.
getContextPath
()%> 那我也使用一下 <%=request.
getContextPath
()%>是解决相对路径的问题
heisetoufa
·
2008-08-13 20:00
html
jsp
Web
浏览器
request.
getContextPath
(),绝对路径,request.getRealPath
看到很多人都喜欢用<%=request.
getContextPath
()%> 那我也使用一下 <%=request.
getContextPath
()%>是解决相对路径的问题
heisetoufa
·
2008-08-13 20:00
html
jsp
Web
浏览器
request.
getContextPath
(),绝对路径,request.getRealPath
看到很多人都喜欢用<%=request.
getContextPath
()%> 那我也使用一下 <%=request.
getContextPath
()%>是解决相对路径的问题
heisetoufa
·
2008-08-13 20:00
html
Web
jsp
浏览器
在jsp页面中加上basePath的路径问题
利用myeclipse创建jsp页面时会自动加上 <% String path = request.
getContextPath
(); String basePath = request.getScheme
5aijava
·
2008-07-30 10:00
jsp
MyEclipse
Jqury回调
saveDefault(ptid){ var httpRequest; httpRequest = $.get("<%=request.
getContextPath
Jatula
·
2008-07-25 14:00
bean
jsp的路径
1)<%= request.
getContextPath
() %> 获得站点根路径,可以解决相对路径的问题。
spacefly
·
2008-07-24 14:00
jsp
浏览器
Request中
getContextPath
、getServletPath、getRequestURI、request.getRealPath的区别
1、System.out.println(request.
getContextPath
()); 打印结果:/projects 2、System.out.println(request.getServletPath
xiaoping8411
·
2008-07-08 16:00
jsp
api
servlet
null
Path
wml页面传递变量
*" contentType="text/vnd.wap.wml;charset=GBK"%> <% String path = request.
getContextPath
superherosk123
·
2008-07-08 13:00
jsp
cache
Go
Nokia
WAP
从request获取各种路径总结
./");//网页所在目录的上一层目录request.
getContextPath
();//应用的web目录的名称 如http://localhost:7001/bookS
nsrainbow
·
2008-06-24 12:00
struts2.0 action转跳到jsp页面css失效解决方案
String path = request.
getContextPath
(); String basePase = request.getScheme()+"://"+request.getServerName
jiyanliang
·
2008-05-30 16:00
java
html
jsp
css
struts2.0 action转跳到jsp页面css失效解决方案
String path = request.
getContextPath
(); String basePase = request.getScheme()+"://"+request.getServerName
jiyanliang
·
2008-05-30 16:00
java
html
jsp
css
struts2.0 action转跳到jsp页面css失效解决方案
String path = request.
getContextPath
(); String basePase = request.getScheme()+"://"+request.getServerName
jiyanliang
·
2008-05-30 16:00
java
html
jsp
css
freemarker相对路径和记录当前时间
论坛 ${request.
getContextPath
()}这个是根目录路径显示当前时间:Calendar time = Calendar.getInstance();int hour = time.get
ykdsg
·
2008-05-12 21:00
freemarker
一个小例子
<%@taglib prefix="s" uri="/struts-tags"%> <% String path = request.
getContextPath
xufei0110
·
2008-05-06 10:00
JavaScript
html
css
struts
J#
Request 中的路径问题
http://127.0.0.1:8080/projects/pages/newForm.jsp 则执行下面向行代码后打印出如下结果: 1、 System.out.println(request.
getContextPath
neil-jh
·
2008-05-03 11:00
C++
c
jsp
浏览器
servlet
java + ajax(三级联动) myself
*" pageEncoding="UTF-8"%> <% String contextPath = request.
getContextPath
·
2008-04-21 15:00
java
Servlet使用
1.1重定向(如果对方不支持cookie,回写sessionID进行session跟踪) response.sendRedirect(response.encodeRedirectURL(request.
getContextPath
·
2008-04-19 20:00
ajax实现的分页代码(二)
*" pageEncoding="utf-8"%> <% String path = request.
getContextPath
(); String basePath
379548695
·
2008-04-15 18:00
html
jsp
json
Ajax
Prototype框架学习$R()函数
*" contentType="text/html; charset=gbk"%> <% String path = request.
getContextPath
zhangpeng_sun
·
2008-04-05 03:00
prototype
Prototype框架学习$H()函数
*" contentType="text/html; charset=gbk"%> <% String path = request.
getContextPath
zhangpeng_sun
·
2008-04-05 03:00
prototype
Prototype框架学习$F()函数
*" contentType="text/html; charset=gbk"%> <% String path = request.
getContextPath
zhangpeng_sun
·
2008-04-05 03:00
prototype
Prototype框架学习$A()函数
*" contentType="text/html; charset=gbk"%> <% String path = request.
getContextPath
zhangpeng_sun
·
2008-04-05 02:00
prototype
Request中
getContextPath
、getServletPath、getRequestURI、request.getRealPath的区别
你在浏览器中输入请求路径:http://localhost:8080/news/main/list.jsp则执行下面向行代码后打印出如下结果:1、 System.out.println(request.
getContextPath
lcj8
·
2008-03-30 10:00
Web
浏览器
application
一定程度的解决弹出窗口问题
*" pageEncoding="GB2312"%> <% String path = request.
getContextPath
(); String
beyondsanli
·
2008-03-21 11:00
java
jsp
asp
JAVA连MSSQL
*" pageEncoding="GBK"%> <% String path = request.
getContextPath
(); String basePath
xi5566
·
2008-03-03 08:00
java
jsp
jdbc
struts
Microsoft
JAVA中获取路径
以工程名为TEST为例: (1)得到包含工程名的当前页面全路径:request.getRequestURI() 结果:/TEST/test.jsp (2)得到工程名:request.
getContextPath
zxz_java
·
2008-02-29 12:00
java
tomcat
jsp
servlet
IE
基础设施对象Infrastructure
1.获取应用程序的虚拟目录名称 String contextPath=this.getRequestCycle().getInfrastructure().
getContextPath
(
zhangwenjun8045
·
2008-02-14 17:00
jsp
一小段代码,得到项目决对路径
<%String path = request.
getContextPath
();String basePath = request.getScheme()+"://"+request
yaowei06252009
·
2008-01-23 09:00
框架
response.sendRedirect找不到路径
改成 response.sendRedirect(request.
getContextPath
+ "/a.jsp") 也不行。
sun201200204
·
2007-12-28 15:00
tomcat
jsp
Web
Go
从request获取各种路径总结
./");//网页所在目录的上一层目录request.
getContextPath
();//应用的web目录的名称如http://localhost:7001/boo
and4walker
·
2007-12-19 14:00
Web
从request获取各种路径总结
/");//网页所在目录的上一层目录 request.
getContextPath
();//应
and4walker
·
2007-12-19 14:00
Web
从request获取各种路径总结
/");//网页所在目录的上一层目录 request.
getContextPath
();//应
and4walker
·
2007-12-19 14:00
Web
从request获取各种路径总结
/");//网页所在目录的上一层目录 request.
getContextPath
();//应
and4walker
·
2007-12-19 14:00
Web
html的base
nbsp; <% String path = request.
getContextPath
yoloo
·
2007-12-12 09:00
java
html
JavaScript报表
;%@ page language="java" pageEncoding="utf-8"%> <% String path = request.
getContextPath
wesker0918
·
2007-12-10 12:00
JavaScript
html
浏览器
360
IE地址栏前换成自己的图标
地址栏前换成自己的图标 --%> <% String contextPath = request.
getContextPath
carlos
·
2007-11-13 15:00
xml
IE
JSP表达式和EL用时比较
阅读更多/cityrequest.
getContextPath
()表达式用时7543/cityapplication.
getContextPath
()表达式用时7263/cityapplication.getAttribute
yqp_001
·
2007-10-30 11:00
JSP
脚本
JSP表达式和EL用时比较
/city request.
getContextPath
() 表达式 用时 7543 /city application.
getContextPath
() 表达式 用时 7263 /city application.getAttribute
yqp_001
·
2007-10-30 11:00
jsp
脚本
怪问题 当在一个jsp页面中,引用了两个js文件时,位置一换就错
在一个jsp页面中,引用了两个js a.js,b.js文件, <script type="text/javascript" src="<%=request.
getContextPath
zgqynx
·
2007-10-17 16:00
jsp
上一页
23
24
25
26
27
28
29
30
下一页
按字母分类:
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
其他