我有以下代码:如何在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