title: template and layout for spring-mvc application
body: <p>I am using jee with spring mvc framework.
  I want to make a template that holds a fix menu and a content that change depending on the URI.</p>
  
  <p>I want to execute same code for my template suppose that there is something to load from the database in the template. So I want a java method to be executed if the template is loaded and initialise all the dynamic content.</p>
  
  <p>What is the best option to choose?
  Is this possible with Thymeleaf view engine?
  Is there another alternatives?</p>
  
  <p>Thanks</p>