获取前台地址


标签 中doStart
强转成HttpServltRequest
ServletRequest request=pageContext.getRequest();
HttpServletRequest req=(HttpServletRequest)request;
String path = req.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";

你可能感兴趣的:(获取)