關于action路徑的問題
我新建的工程 要從index頁面跳轉到goforwed.jsp頁面,form的action設置為"WEB-INF/goforwed.jsp"。
結果是找不到這個路徑
Type?Status Report
Description?The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
有誰知道是什么原因么,這個路徑應該怎么設
2017-05-12
知道原因了:
? ? ?//通過轉發訪問WEB-INF資源:WEB-INF為安全目錄(位于服務器端,只有服務器級別才能訪問,轉發就是服務器級別)
? ? ?request.getRequestDispatcher("WEB-INF/jsp/goforwed.jsp").forward(request, response);