我有以下代碼:如何在RequestDispatcher.forward之後避免在瀏覽器地址欄中顯示參數?
RequestDispatcher dispatcher = request.getRequestDispatcher(viewName);
// while viewName is another servlet name;
dispatcher.forward(request, response);
它顯示在瀏覽器地址欄中,除了參數的成功forwording。事情是這樣的:
http://localhost:8080/testweb/action/LoginAction/login?username=apcpros%40163.com&password=12234
我不想表現出任何的參數(例如用戶名和密碼)在瀏覽器地址欄中forwording後。 我該怎麼辦?
你能解決這個問題嗎? – Perdomoff
我犯了一個小錯誤。我在jsp中使用了一個GET方法。 – Albert