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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -