title: Single page application with Spring MVC
body: <p>I'm trying to build a single page web application using Spring MVC, relying on native Spring MVC controllers (with model and views) and common rest controllers that return JSON information. </p>
  
  <p>I want to briefly explain you what i'm doing with a simple example:</p>
  
  <ol>
  <li>if the user click on the home page button inside the menu, an Ajax
  method is called and it sends a GET HTTP request to my server that
  handles the request with a Spring MVC controller, returning the
  rendered html file of the home page, coming from a JSP file
  containing JSTL and Spring tags.</li>
  <li>Once the Ajax method receives the content of the homepage it changes
  the content of the main div inside my html body with this new one.
  In the end what the user has, is the homepage without refreshing the
  page (sorry for the game of words).</li>
  </ol>
  
  <p>The only problem is that if a user writes inside the browser the url of the GET HTTP request that the Ajax method uses to get the homepage content, right now what happens is that he will load the homepage content inside the browser(and of course i don't want him to be able to send this get http request manually). </p>
  
  <p>I really hope to have explained myself with this example and I would like to ask you if you have any suggestions to give me in this direction in order to solve this problem! I know that using a framework such as React or Angular, things would be much much easier but i still have to learn one! This will be the first upgrade I'll do in the future to this webapp. </p>
  
  <p>Thank you very much for your help!</p>