request.getContextPath()笔录
2011-10-28 17:51
155 查看
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String qxglPath = request.getScheme()+"://"+request.getServerName()+":"+"7300"+"//qxgl/CtrlUser?action=login&surl=IndexFrame.jsp&furl=LoginError.jsp"; String zhibiaoPath = request.getScheme()+"://"+"10.224.141.208"+":"+"7100"; String qxglPathXS = request.getScheme()+"://"+"10.224.141.208"+":"+"7300"+"//qxgl/CtrlUser?action=login&surl=IndexFrame.jsp&furl=LoginError.jsp"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>My JSP 'index.jsp' starting page</title> </head> <body> This is my JSP page. <br> <a href="<%=qxglPathXS%>">权限</a> <a href="<%=zhibiaoPath%>">指标查询</a>
<a href="<%=basePath %>">当前path</a> </body> </html>
weblogic发布 web发布
相关文章推荐
- getContextPath、getServletPath、getRequestURI的区别
- request.getContextPath()获取的是什么路径?
- getPathInfo() getServletPath() getContextPath() getRequestURL() getRequestURI()
- Request中getContextPath、getServletPath、getRequestURI、getRealPath
- getContextPath、getServletPath、getRequestURI的区别
- request.getContextPath()使用
- 【javaweb:cookie】cookie.setPath("/"+request.getContextPath())这样写是错误的!!!
- getContextPath、getServletPath、getRequestURI的区别
- 转:getContextPath、getServletPath、getRequestURI的区别
- [js]js中获取 <%=request.getContextPath()%>
- getContextPath、getServletPath、getRequestURL、getRealPath的区别
- Servlet中getContextPath、getServletPath、getRequestURI、getRealPath等区别
- request.getContextPath()
- getContextPath、getServletPath、getRequestURI的区别
- getContextPath、getServletPath、getRequestURI的区别
- 解决js文件无法获得request.getContextPath的问题
- Request中getContextPath、getServletPath、getRequestURI、request.getRealPath的区别
- getContextPath、getServletPath、getRequestURI的区别
- request.getContextPath().getRequestURI().getServletPath().getRequestURL().getRealPath() 图解
- getContextPath、getServletPath、getRequestURI的区别