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

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -