JSP獲取項目名與路徑

<% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <%=path%><%=basePath%> 1.request.getSchema()能夠返回
相關文章
相關標籤/搜索