jeudi 7 avril 2016

Change Displayed URL in address bar

I have a project. I am running wildfly server. There is a signing in form through which the users sign in to the service. When they sign in http://localhost:8080/PMS/web this is the url on the address bar where web is the name of my servlet. How can i change it to something like http://localhost:8080/PMS/user/home so that it gives better readability ? I managed to change the url using history.pushState(). Is this a good way ?




Aucun commentaire:

Enregistrer un commentaire