jsp頁面獲取絕對和相對路徑

一、如圖:「標籤2」 拼裝獲取當前網頁的相對路徑的 html <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> 瀏覽器 request.getSc
相關文章
相關標籤/搜索