java - How to avoid show parameters in the browser address bar after RequestDispatcher.forward? -


i have following code :

requestdispatcher dispatcher = request.getrequestdispatcher(viewname); // while viewname servlet name; dispatcher.forward(request, response); 

it's successful forwording except parameters shown in browser address bar. this:

http://localhost:8080/testweb/action/loginaction/login?username=apcpros%40163.com&password=12234 

i not want show parameters (e.g. username , password) in browser address bar after forwording. should do?

forward post , not get? that's , if contains parameters need forwarded, or remove.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -