路径问题
来源:互联网 发布:蜂窝移动网络设置 编辑:程序博客网 时间:2024/05/21 06:47
方法一:访问到工程下
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<a href="<%=basePath%>index.jsp">
方法二:项目根路径
/index.jsp
Index.jsp
方法三:直接定义到头
<head><base href="<%=basePath%>"></head>
<a href=”index.jsp”
- 路径问题
- 路径问题
- 路径问题
- 路径问题
- 路径问题
- 路径问题
- 路径问题
- 路径问题
- 路径问题
- 路径问题
- 路径问题
- 路径问题
- 路径问题
- 路径问题
- 路径问题
- 路径问题
- 路径问题
- 路径问题
- UVa 120 - Stacks of Flapjacks
- 《齐物论》篇1
- 【转】JPEG压缩原理
- struts2的method执行
- CF-27D. Ring Road 2(涂色)
- 路径问题
- CF-27E - Number With The Given Amount Of Divisors(枚举+dfs)
- Healthy Holsteins
- 奥丁科技出的三国2秘籍是什么?
- 命名空间
- log4j警告的解决办法
- 性能调优攻略
- Struts 1.3中实现文件的上传与下载
- FPGA的EDA工具常见报错分析