關(guān)于action路徑的問題
我新建的工程 要從index頁面跳轉(zhuǎn)到goforwed.jsp頁面,form的action設(shè)置為"WEB-INF/goforwed.jsp"。
結(jié)果是找不到這個路徑
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.
有誰知道是什么原因么,這個路徑應(yīng)該怎么設(shè)
2017-05-12
知道原因了:
? ? ?//通過轉(zhuǎn)發(fā)訪問WEB-INF資源:WEB-INF為安全目錄(位于服務(wù)器端,只有服務(wù)器級別才能訪問,轉(zhuǎn)發(fā)就是服務(wù)器級別)
? ? ?request.getRequestDispatcher("WEB-INF/jsp/goforwed.jsp").forward(request, response);