java - Hide part of url -


is there way hide part of url of page?

for example instead of www.mypage.com/login&userid=0011/

to show www.mypage.com/login ?

i developing webpage liferay , using jsp show content of page , java complete actions want done.

any appreciated! in advance!

the userid here 'request parameter'.

to hide request parameters use post instead of get.

the method default method pass information browser web server , produces long string appears in browser's address bar. never use method if have password or other sensitive information pass server.

e.g.

<form action="myform.jsp" method="get"> 

a more reliable method of passing information post method.this method packages information in same way methods, instead of sending text string after ? in url sends separate message.

e.g.

<form action="myform.jsp" method="post"> 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -