How do I hide a URL that appears after my domain?

0

I have a Java application using Spring MVC.

Let's suppose that my application has the domain www.mysite.com

As the user browses, other urls are generated, for example:

  • www.meusistema.com.br/acessarConta
  • www.meusistema.com.br/questros/recuperarSenha
  • www.mywebsite.com/showcase?type=1

I would like to know if there is any way to hide what appears after the slash (/), so my user always navigates only by seeing www.mysite.com

Is there any way to hide this rest of the url? The application uses Spring MVC but the solution to this does not necessarily need to use this framework ... My screens are in JSP, so I can use javascript, ajax, jquery etc.

    
asked by anonymous 19.02.2016 / 20:13

2 answers

0

I solved the problem by changing all forms from html to POST, then defining what appears in the URL in the Controller.

    
23.02.2016 / 15:14
0

You can also map the controller to "/" and use ViewResolver to handle each view.

In this case the controller would have to redirect the request to each appropriate view, returning different view names.

    
03.06.2016 / 19:03