首页 > 代码库 > 获取项目地址

获取项目地址

 String _path = request.getContextPath();    String _basePath = request.getScheme() + "://"            + request.getServerName() + ":" + request.getServerPort()            + _path + "/";    pageContext.setAttribute("path", _basePath);

 

获取项目地址